// GENERATED CODE - DO NOT MODIFY BY HAND part of 'mangas_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** MangasDto _$MangasDtoFromJson(Map json) => MangasDto( data: (json['data'] as List?) ?.map((e) => MangaDataDto.fromJson(e as Map)) .toList(), pagination: json['pagination'] == null ? null : MangaPaginationDto.fromJson( json['pagination'] as Map), ); MangaPaginationDto _$MangaPaginationDtoFromJson(Map 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 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), id: (json['mal_id'] as num?)?.toInt(), type: json['type'] as String?, ); MangaDataImagesDto _$MangaDataImagesDtoFromJson(Map json) => MangaDataImagesDto( jpg: json['jpg'] == null ? null : MangaDataImagesJPGDto.fromJson(json['jpg'] as Map), ); MangaDataImagesJPGDto _$MangaDataImagesJPGDtoFromJson( Map json) => MangaDataImagesJPGDto( image_url: json['image_url'] as String?, );