Model class abstract

Implementers

Constructors

Model(dynamic json)

Properties

fields → Iterable<Field>
List all availiable fields. This is super importante to complete.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String name) → Field?
nameOfField(Field field) → String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

isRegistering ↔ bool
getter/setter pair
modelsByName → Map<String, ModelInstanciator>
final
modelsNameByType → Map<Type, String>
final

Static Methods

createByName(String name, [dynamic json]) → Model?
createByType(Type type, [dynamic json]) → Model?
register(String name, ModelInstanciator modelInstanciator) → void
This enables the Model class to instanciate model subclasses