// 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( name: json['name'] as String?, url: json['url'] as String?, imageUrl: json['imageUrl'] as String?, details: json['details'] == null ? null : PokemonDetailsDto.fromJson(json['details'] as Map), ); PokemonDetailsDto _$PokemonDetailsDtoFromJson(Map json) => PokemonDetailsDto( height: (json['height'] as num?)?.toInt(), weight: (json['weight'] as num?)?.toInt(), abilities: (json['abilities'] as List?) ?.map((e) => AbilityDto.fromJson(e as Map)) .toList(), ); AbilityDto _$AbilityDtoFromJson(Map json) => AbilityDto( ability: json['ability'] == null ? null : AbilityDetailDto.fromJson(json['ability'] as Map), ); AbilityDetailDto _$AbilityDetailDtoFromJson(Map json) => AbilityDetailDto( name: json['name'] as String?, );