Mobile/lib/data/dtos/anime_dto.g.dart
2024-11-11 22:32:44 +04:00

38 lines
1.3 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'anime_dto.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
AnimesDto _$AnimesDtoFromJson(Map<String, dynamic> json) => AnimesDto(
data: (json['data'] as List<dynamic>?)
?.map((e) => AnimeDataDto.fromJson(e as Map<String, dynamic>))
.toList(),
);
AnimeDataDto _$AnimeDataDtoFromJson(Map<String, dynamic> json) => AnimeDataDto(
(json['mal_id'] as num?)?.toInt(),
json['title'] as String?,
json['synopsis'] as String?,
json['images'] == null
? null
: AnimeImagesDto.fromJson(json['images'] as Map<String, dynamic>),
(json['score'] as num?)?.toDouble(),
);
AnimeImagesDto _$AnimeImagesDtoFromJson(Map<String, dynamic> json) =>
AnimeImagesDto(
jpg: json['jpg'] == null
? null
: AnimeImagesJpgDto.fromJson(json['jpg'] as Map<String, dynamic>),
);
AnimeImagesJpgDto _$AnimeImagesJpgDtoFromJson(Map<String, dynamic> json) =>
AnimeImagesJpgDto(
json['image_url'] as String?,
json['small_image_url'] as String?,
json['large_image_url'] as String?,
);