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