LocationGameIndex.fromJson constructor

LocationGameIndex.fromJson(
  1. Map<String, dynamic> json
)

Implementation

LocationGameIndex.fromJson(Map<String, dynamic> json) {
  generation = json['generation'] != null
      ?  NamedAPIResource.fromJson(json['generation'])
      : null;
  gameIndex = json['game_index'];
}