PokedexPokemonEntry.fromJson constructor

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

Implementation

PokedexPokemonEntry.fromJson(Map<String, dynamic> json) {
  entryNumber = json['entry_number'];
  pokemonSpecies = json['pokemon_species'] != null
      ? new NamedAPIResource.fromJson(json['pokemon_species'])
      : null;
}