// GENERATED CODE - DO NOT MODIFY BY HAND part of 'pokemon_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PokemonDto _$PokemonDtoFromJson(Map json) => PokemonDto( results: (json['results'] as List?) ?.map((e) => PokemonDataDto.fromJson(e as Map)) .toList(), count: (json['count'] as num?)?.toInt(), next: json['next'] as String?, previous: json['previous'] as String?, ); PokemonDataDto _$PokemonDataDtoFromJson(Map json) => PokemonDataDto( id: json['id'] as String?, name: json['name'] as String?, attributes: json['attributes'] == null ? null : PokemonAttributesDto.fromJson( json['attributes'] as Map), ); PokemonAttributesDto _$PokemonAttributesDtoFromJson( Map json) => PokemonAttributesDto( type: json['type'] as String?, height: (json['height'] as num?)?.toInt(), weight: (json['weight'] as num?)?.toInt(), abilities: (json['abilities'] as List?) ?.map((e) => e as String) .toList(), image: json['image'] as String?, );