2024-10-04 23:46:07 +04:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'animes_dto.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
AnimesDto _$AnimesDtoFromJson(Map<String, dynamic> json) => AnimesDto(
|
|
|
|
data: (json['data'] as List<dynamic>?)
|
|
|
|
?.map((e) => AnimeDto.fromJson(e as Map<String, dynamic>))
|
|
|
|
.toList(),
|
2024-10-06 00:37:40 +04:00
|
|
|
pagination: json['pagination'] == null
|
|
|
|
? null
|
|
|
|
: PaginationDto.fromJson(json['pagination'] as Map<String, dynamic>),
|
|
|
|
);
|
|
|
|
|
|
|
|
PaginationDto _$PaginationDtoFromJson(Map<String, dynamic> json) =>
|
|
|
|
PaginationDto(
|
|
|
|
currentPage: (json['current_page'] as num?)?.toInt(),
|
|
|
|
hasNextPage: json['has_next_page'] as bool?,
|
|
|
|
lastPage: (json['last_visible_page'] as num?)?.toInt(),
|
2024-10-04 23:46:07 +04:00
|
|
|
);
|
|
|
|
|
|
|
|
AnimeDto _$AnimeDtoFromJson(Map<String, dynamic> json) => AnimeDto(
|
2024-10-06 18:19:38 +04:00
|
|
|
id: (json['mal_id'] as num?)?.toInt(),
|
2024-10-04 23:46:07 +04:00
|
|
|
title: json['title'] as String?,
|
|
|
|
rating: json['rating'] as String?,
|
|
|
|
synopsis: json['synopsis'] as String?,
|
|
|
|
type: json['type'] as String?,
|
|
|
|
year: (json['year'] as num?)?.toInt(),
|
|
|
|
images: json['images'] == null
|
|
|
|
? null
|
|
|
|
: ImagesDto.fromJson(json['images'] as Map<String, dynamic>),
|
|
|
|
);
|
|
|
|
|
|
|
|
ImagesDto _$ImagesDtoFromJson(Map<String, dynamic> json) => ImagesDto(
|
|
|
|
jpg: json['jpg'] == null
|
|
|
|
? null
|
|
|
|
: ImageDto.fromJson(json['jpg'] as Map<String, dynamic>),
|
|
|
|
);
|
|
|
|
|
|
|
|
ImageDto _$ImageDtoFromJson(Map<String, dynamic> json) => ImageDto(
|
|
|
|
imageUrl: json['image_url'] as String?,
|
|
|
|
);
|