Properties
$className
→ String
The class name of the model as a string.
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
copyWith (BaseModel ? other )
→ BaseModel
Returns a new copy of the BaseModel with the fields updated from the
other
BaseModel.
equals (dynamic other )
→ bool
Compares the BaseModel with another BaseModel using the
DeepCollectionEquality
and returns true
if they are equal.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sortedJson ({dynamic defaultValue , bool includeNulls = false })
→ Map <String , dynamic >
Returns a Json i.e. Map<String, dynamic>
representation of the BaseModel,
with the keys sorted alphabetically.
toJson ({dynamic defaultValue , bool includeNulls = false })
→ Map <String , dynamic >
Returns a Json i.e. Map<String, dynamic>
representation of the BaseModel.
toJsonString ()
→ String
Returns a JSON string representation of the BaseModel.
toString ()
→ String
A string representation of this object.
override
toUrl ()
→ Uri
Converts the current BaseModel to a Uri that can be used as a
distinct identifier. The model must not be too large to avoid exceeding
the maximum length of a URL.