ConstOptionaloptions: {Optionaldatabase?: Database.DatabaseDatabase to associate with the object.
Optionalparent?: Obj.UnknownParent entity to associate with the object (used when the JSON has no @parent). Changes the result of Obj.getParent.
OptionalrefResolver?: ResolverResolver for references. Produces hydrated references that can be resolved.
Optionaluri?: URI.URIOverride object URI. Changes the result of Obj.getURI.
Creates an object from its json representation, performing schema validation. References and schemas will be resolvable if the
refResolveris provided.The function must be async to support resolving the schema as well as the relation endpoints.