// GENERATED CODE - DO NOT MODIFY BY HAND part of 'pokemon_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PokemonDto _$PokemonDtoFromJson(Map json) => PokemonDto( name: json['name'] as String?, baseExperience: (json['baseExperience'] as num?)?.toInt(), types: (json['types'] as List?) ?.map((e) => PokemonTypeDto.fromJson(e as Map)) .toList(), abilities: (json['abilities'] as List?) ?.map((e) => PokemonAbilityDto.fromJson(e as Map)) .toList(), sprites: json['sprites'] == null ? null : PokemonSpritesDto.fromJson(json['sprites'] as Map), ); PokemonTypeDto _$PokemonTypeDtoFromJson(Map json) => PokemonTypeDto( slot: (json['slot'] as num?)?.toInt(), type: json['type'] == null ? null : TypeDto.fromJson(json['type'] as Map), ); TypeDto _$TypeDtoFromJson(Map json) => TypeDto( name: json['name'] as String?, url: json['url'] as String?, ); PokemonAbilityDto _$PokemonAbilityDtoFromJson(Map json) => PokemonAbilityDto( slot: (json['slot'] as num?)?.toInt(), ability: json['ability'] == null ? null : AbilityDto.fromJson(json['ability'] as Map), ); AbilityDto _$AbilityDtoFromJson(Map json) => AbilityDto( name: json['name'] as String?, url: json['url'] as String?, ); PokemonSpritesDto _$PokemonSpritesDtoFromJson(Map json) => PokemonSpritesDto( front_default: json['front_default'] as String, );