Model<C> class

Constructors

Model(Map<String, dynamic> data)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCollection() String
getData({required String key, dynamic defaultValue}) → dynamic
getDateTime({required String key, dynamic defaultValue}) DateTime?
getEnum({required String key, required List values, dynamic defaultValue}) → dynamic
getId() String
getInt({required String key, String? defaultValue}) int?
getRelations() List<Relation<Model, Model>>
getString({required String key, String? defaultValue}) String?
loadRelations() Future<void>
merge(Map<String, dynamic> newData) Future<Map<String, dynamic>>
mergeAndValidate() Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onArray() Map<String, dynamic>
onMerge() Future<Map<String, dynamic>>
onShouldDeleteByLimit() Future<bool>
onValidate() Map<String, List<String>>
onValidateFunctions() Map<String, List>
raw() Map<String, dynamic>
remove() Future<void>
save() Future
setData(String key, dynamic value) → dynamic
shouldDeleteByLimit() Future<bool>
sync() Future<void>
toArray() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
validate() Future<bool>

Operators

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

Static Methods

get(String id) → dynamic
register(Map<String, dynamic> models) → dynamic
typeToId(dynamic type) String