BaseModel class abstract
Contains the minimum requirements to be considered a model
- Implementers
- Available extensions
Constructors
Properties
-
fieldKeys
→ Iterable<
String> -
Returns all the available field keys in this object.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
Unique identifier for this model
getter/setter pair
- idKey → String
-
Represents the field key used for the id
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Unique type to give to the model. Whether or not collision is expected is
dependent on the parameters of your system.
no setter
- typeKey → String
-
Represents the field key used for the type
no setter
Methods
-
getField(
String key) → dynamic -
Returns the value of the field with name
key
or null ifkey
is not a field in this model. -
loadFromMap(
Map< String, dynamic> map, {bool respectType = true}) → void - Loads a Serializable map into the values of this BaseModel
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setField(
String key, dynamic value) → bool -
Sets the field with name
key
to the givenvalue
-
toMap(
) → Map< String, dynamic> - Converts this BaseModel into a Serializable Map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited