23 lines
785 B
Dart
23 lines
785 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'pokemon_dto.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
PokemonDto _$PokemonDtoFromJson(Map<String, dynamic> json) => PokemonDto(
|
|
results: (json['results'] as List<dynamic>?)
|
|
?.map((e) => PokemonDataDto.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
count: (json['count'] as num?)?.toInt(),
|
|
next: json['next'] as String?,
|
|
previous: json['previous'] as String?,
|
|
);
|
|
|
|
PokemonDataDto _$PokemonDataDtoFromJson(Map<String, dynamic> json) =>
|
|
PokemonDataDto(
|
|
name: json['name'] as String?,
|
|
url: json['url'] as String?,
|
|
);
|