Team.fromMap constructor

Team.fromMap(
  1. Map<String, dynamic> map
)

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']),
  );
}