loadFromMap method
Loads a Serializable map into the values of this BaseModel
You can generate a value that can be passed into this by using toMap
respectType
will make a check to ensure that the TYPE entry is the same
if true. This will throw an FormatException if they're not the same
Implementation
@override
void loadFromMap(Map<String, dynamic> map, {bool respectType = true}) {
if (respectType && map.containsKey(TYPE)) {
if (map[TYPE] != type) {
throw FormatException('Type in $map does not match $type');
}
}
getterSetterMap.loadMap(map);
}