// GENERATED CODE - DO NOT MODIFY BY HAND part of 'pokemon_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PokemonDto _$PokemonDtoFromJson(Map json) => PokemonDto( id: (json['id'] as num).toInt(), name: json['name'] as String, types: (json['types'] as List) .map((e) => PokemonTypeDto.fromJson(e as Map)) .toList(), sprites: PokemonSpritesDto.fromJson(json['sprites'] as Map), ); PokemonTypeDto _$PokemonTypeDtoFromJson(Map json) => PokemonTypeDto( slot: (json['slot'] as num).toInt(), type: PokemonTypeDetailDto.fromJson(json['type'] as Map), ); PokemonTypeDetailDto _$PokemonTypeDetailDtoFromJson(Map json) => PokemonTypeDetailDto( name: json['name'] as String, url: json['url'] as String, ); PokemonSpritesDto _$PokemonSpritesDtoFromJson(Map json) => PokemonSpritesDto( front_default: json['front_default'] as String, );