loadFromMap abstract method

void loadFromMap(
  1. Map<String, dynamic> map, {
  2. bool respectType = true,
})

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

void loadFromMap(Map<String, dynamic> map, {bool respectType = true});