TeamList.fromMap constructor

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

Implementation

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