Adding the ability to build a local model from a JSON local file

just curious: why wouldn't `self.resourceId == undefined` work here?