что то добавила
This commit is contained in:
parent
f84c163686
commit
9f1b790c86
42
lib/data/dtos/pokemon_dto.g.dart
Normal file
42
lib/data/dtos/pokemon_dto.g.dart
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// 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?,
|
||||||
|
);
|
||||||
|
|
||||||
|
PokemonDetailsDto _$PokemonDetailsDtoFromJson(Map<String, dynamic> json) =>
|
||||||
|
PokemonDetailsDto(
|
||||||
|
height: (json['height'] as num?)?.toInt(),
|
||||||
|
weight: (json['weight'] as num?)?.toInt(),
|
||||||
|
abilities: (json['abilities'] as List<dynamic>?)
|
||||||
|
?.map((e) => AbilityDto.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
);
|
||||||
|
|
||||||
|
AbilityDto _$AbilityDtoFromJson(Map<String, dynamic> json) => AbilityDto(
|
||||||
|
ability: json['ability'] == null
|
||||||
|
? null
|
||||||
|
: AbilityDetailDto.fromJson(json['ability'] as Map<String, dynamic>),
|
||||||
|
);
|
||||||
|
|
||||||
|
AbilityDetailDto _$AbilityDetailDtoFromJson(Map<String, dynamic> json) =>
|
||||||
|
AbilityDetailDto(
|
||||||
|
name: json['name'] as String?,
|
||||||
|
);
|
Loading…
x
Reference in New Issue
Block a user