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