// 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(),
      pagination: json['pagination'] == null
          ? null
          : PaginationDto.fromJson(json['pagination'] as Map<String, dynamic>),
    );

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?,
    );

PaginationDto _$PaginationDtoFromJson(Map<String, dynamic> json) =>
    PaginationDto(
      current: (json['current_page'] as num?)?.toInt(),
      last: (json['last_visible_page'] as num?)?.toInt(),
      next: json['has_next_page'] as bool?,
    );
