Team.fromMap constructor
Implementation
factory Team.fromMap(Map<String, dynamic> map) {
return Team(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
name: map['name'].toString(),
total: map['total'],
prefs: Preferences.fromMap(map['prefs']),
);
}