factory TeamList.fromMap( Map<String, dynamic> map, ) { return TeamList( total: map['total'], teams: List<Team>.from( map['teams'].map((p) => Team.fromMap(p)), ), ); }