PIbd31_Razubaev.S.M._PMU/lib/data/dtos/mangas_dto.g.dart

50 lines
1.7 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(),
pagination: json['pagination'] == null
? null
: MangaPaginationDto.fromJson(
json['pagination'] as Map<String, dynamic>),
);
MangaPaginationDto _$MangaPaginationDtoFromJson(Map<String, dynamic> json) =>
MangaPaginationDto(
currentPage: (json['current_page'] as num?)?.toInt(),
hasNextPage: json['has_next_page'] as bool?,
lastVisiblePage: (json['last_visible_page'] as num?)?.toInt(),
);
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?,
);