PIbd31_Razubaev.S.M._PMU/lib/data/dtos/mangas_dto.g.dart
2024-10-16 12:08:15 +04:00

39 lines
1.3 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'mangas_dto.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
MangasDto _$MangasDtoFromJson(Map<String, dynamic> json) => MangasDto(
data: (json['data'] as List<dynamic>?)
?.map((e) => MangaDataDto.fromJson(e as Map<String, dynamic>))
.toList(),
);
MangaDataDto _$MangaDataDtoFromJson(Map<String, dynamic> json) => MangaDataDto(
json['title'] as String?,
json['status'] as String?,
(json['score'] as num?)?.toDouble(),
(json['scored_by'] as num?)?.toInt(),
json['images'] == null
? null
: MangaDataImagesDto.fromJson(json['images'] as Map<String, dynamic>),
id: json['id'] as String?,
type: json['type'] as String?,
);
MangaDataImagesDto _$MangaDataImagesDtoFromJson(Map<String, dynamic> json) =>
MangaDataImagesDto(
jpg: json['jpg'] == null
? null
: MangaDataImagesJPGDto.fromJson(json['jpg'] as Map<String, dynamic>),
);
MangaDataImagesJPGDto _$MangaDataImagesJPGDtoFromJson(
Map<String, dynamic> json) =>
MangaDataImagesJPGDto(
image_url: json['image_url'] as String?,
);