TournamentSearch.fromMap constructor
Decodes TournamentSearch object from json map
Implementation
factory TournamentSearch.fromMap(Map<String, dynamic> json) =>
TournamentSearch(
items: json['items'] == null
? null
: List<Tournament>.from(
json['items'].map((x) => Tournament.fromMap(x))),
totalItems: json['total_items'] == null ? null : json['total_items'],
currentItems:
json['current_items'] == null ? null : json['current_items'],
);