// GENERATED CODE - DO NOT MODIFY BY HAND part of 'animes_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** AnimesDto _$AnimesDtoFromJson(Map json) => AnimesDto( data: (json['data'] as List?) ?.map((e) => AnimeDto.fromJson(e as Map)) .toList(), pagination: json['pagination'] == null ? null : PaginationDto.fromJson(json['pagination'] as Map), ); PaginationDto _$PaginationDtoFromJson(Map json) => PaginationDto( currentPage: (json['current_page'] as num?)?.toInt(), hasNextPage: json['has_next_page'] as bool?, lastPage: (json['last_visible_page'] as num?)?.toInt(), ); AnimeDto _$AnimeDtoFromJson(Map json) => AnimeDto( id: (json['mal_id'] as num?)?.toInt(), 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), ); ImagesDto _$ImagesDtoFromJson(Map json) => ImagesDto( jpg: json['jpg'] == null ? null : ImageDto.fromJson(json['jpg'] as Map), ); ImageDto _$ImageDtoFromJson(Map json) => ImageDto( imageUrl: json['image_url'] as String?, );