fromMap static method
- Map map
Constructs a User instance from a Map.
Expects the map to contain keys for 'ID', 'name', and 'hashedPassword'.
Implementation
static User fromMap(Map map) {
return User(
ID: map['ID'],
userName: map['name'],
hashedPassword: map['hashedPassword'],
);
}