Api.fromJson constructor

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

Implementation

Api.fromJson(Map<String, dynamic> json) {
  ability = json['ability'];
  berry = json['berry'];
  berryFirmness = json['berry-firmness'];
  berryFlavor = json['berry-flavor'];
  characteristic = json['characteristic'];
  contestEffect = json['contest-effect'];
  contestType = json['contest-type'];
  eggGroup = json['egg-group'];
  encounterCondition = json['encounter-condition'];
  encounterConditionValue = json['encounter-condition-value'];
  encounterMethod = json['encounter-method'];
  evolutionChain = json['evolution-chain'];
  evolutionTrigger = json['evolution-trigger'];
  gender = json['gender'];
  generation = json['generation'];
  growthRate = json['growth-rate'];
  item = json['item'];
  itemAttribute = json['item-attribute'];
  itemCategory = json['item-category'];
  itemFlingEffect = json['item-fling-effect'];
  itemPocket = json['item-pocket'];
  language = json['language'];
  location = json['location'];
  locationArea = json['location-area'];
  machine = json['machine'];
  move = json['move'];
  moveAilment = json['move-ailment'];
  moveBattleStyle = json['move-battle-style'];
  moveCategory = json['move-category'];
  moveDamageClass = json['move-damage-class'];
  moveLearnMethod = json['move-learn-method'];
  moveTarget = json['move-target'];
  nature = json['nature'];
  palParkArea = json['pal-park-area'];
  pokeathlonStat = json['pokeathlon-stat'];
  pokedex = json['pokedex'];
  pokemon = json['pokemon'];
  pokemonColor = json['pokemon-color'];
  pokemonForm = json['pokemon-form'];
  pokemonHabitat = json['pokemon-habitat'];
  pokemonShape = json['pokemon-shape'];
  pokemonSpecies = json['pokemon-species'];
  region = json['region'];
  stat = json['stat'];
  superContestEffect = json['super-contest-effect'];
  type = json['type'];
  version = json['version'];
  versionGroup = json['version-group'];
}