2024-09-22 20:35:55 +04:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'characters_dto.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
CharactersDto _$CharactersDtoFromJson(Map<String, dynamic> json) =>
|
|
|
|
CharactersDto(
|
|
|
|
data: (json['data'] as List<dynamic>?)
|
|
|
|
?.map((e) => CharacterDataDto.fromJson(e as Map<String, dynamic>))
|
|
|
|
.toList(),
|
|
|
|
meta: json['meta'] == null
|
|
|
|
? null
|
|
|
|
: MetaDto.fromJson(json['meta'] as Map<String, dynamic>),
|
|
|
|
);
|
|
|
|
|
|
|
|
CharacterDataDto _$CharacterDataDtoFromJson(Map<String, dynamic> json) =>
|
|
|
|
CharacterDataDto(
|
|
|
|
id: json['id'] as String?,
|
|
|
|
type: json['type'] as String?,
|
|
|
|
attributes: json['attributes'] == null
|
|
|
|
? null
|
|
|
|
: CharacterAttributesDataDto.fromJson(
|
|
|
|
json['attributes'] as Map<String, dynamic>),
|
|
|
|
);
|
|
|
|
|
|
|
|
CharacterAttributesDataDto _$CharacterAttributesDataDtoFromJson(
|
|
|
|
Map<String, dynamic> json) =>
|
|
|
|
CharacterAttributesDataDto(
|
|
|
|
name: json['name'] as String?,
|
2024-09-22 22:30:44 +04:00
|
|
|
nationality: json['nationality'] as String?,
|
|
|
|
species: json['species'] as String?,
|
2024-09-22 20:35:55 +04:00
|
|
|
image: json['image'] as String?,
|
|
|
|
);
|
|
|
|
|
|
|
|
MetaDto _$MetaDtoFromJson(Map<String, dynamic> json) => MetaDto(
|
|
|
|
pagination: json['pagination'] == null
|
|
|
|
? null
|
|
|
|
: PaginationDto.fromJson(json['pagination'] as Map<String, dynamic>),
|
|
|
|
);
|
|
|
|
|
|
|
|
PaginationDto _$PaginationDtoFromJson(Map<String, dynamic> json) =>
|
|
|
|
PaginationDto(
|
|
|
|
current: (json['current'] as num?)?.toInt(),
|
|
|
|
next: (json['next'] as num?)?.toInt(),
|
|
|
|
last: (json['last'] as num?)?.toInt(),
|
|
|
|
);
|