DataModel class abstract

Implemented types
Implementers

Constructors

DataModel()

Properties

fields List<JsonField>
no setter
hashCode int
The hash code for this object.
no setterinherited
rawJson Map<String, dynamic>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cast<TCast extends DataModel>(Type type) → TCast
fromJSON(dynamic json) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String fieldName) → dynamic
operator []=(String fieldName, dynamic value) → void

Static Methods

create<T extends DataModel>(Type type) → dynamic
createInstance<T extends DataModel>(Type type) → T
getType(Type type) ModelType<DataModel>
setType(Type className, InstanceConstructor<DataModel> constructor) → dynamic

Constants

errorKey → const String
informationKey → const String
warningKey → const String