MModelRegistry class
Contains all registered MBaseModel types to support deserialization. The registry reads the mtype property in the json object, and finds the appropriate factory method.
- Mixed-in types
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- log → Logger
-
no setterinherited
- loggerName → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearFactoryResolver(
) → void -
clearTypeExtractors(
) → void -
instantiate<
M extends MBaseModel> ({dynamic json, MSchemaRef? type}) → M -
lookupFactory(
Object mtype) → MModelFactory< MBaseModel> ? -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
MSchemaRef type, MModelFactory< MBaseModel> factory) → void -
inherited
-
registerFactoryResolver(
MModelFactoryResolver< MBaseModel> resolver) → void -
registerTypeExtractor(
TypeExtractor typeExtractor) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String mtype) → MModelFactory< MBaseModel> ?