// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'anime.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_AnimeTrackingData _$AnimeTrackingDataFromJson(Map<String, dynamic> json) =>
    _AnimeTrackingData(
      json['id'] as String,
      const MediumTrackingStateConverter().fromJson(
        (json['state'] as num).toInt(),
      ),
      json['title'] as String,
      (json['episodesWatched'] as num).toInt(),
      (json['episodesTotal'] as num?)?.toInt(),
      json['thumbnailUrl'] as String,
      const BoolConverter().fromJson((json['airing'] as num).toInt()),
      json['broadcastDay'] as String?,
      const OtherTitlesConverter().fromJson(json['otherTitles'] as String),
      const TrackingDataSourceConverter().fromJson(json['source'] as String),
    );

Map<String, dynamic> _$AnimeTrackingDataToJson(_AnimeTrackingData instance) =>
    <String, dynamic>{
      'id': instance.id,
      'state': const MediumTrackingStateConverter().toJson(instance.state),
      'title': instance.title,
      'episodesWatched': instance.episodesWatched,
      'episodesTotal': instance.episodesTotal,
      'thumbnailUrl': instance.thumbnailUrl,
      'airing': const BoolConverter().toJson(instance.airing),
      'broadcastDay': instance.broadcastDay,
      'otherTitles': const OtherTitlesConverter().toJson(instance.otherTitles),
      'source': const TrackingDataSourceConverter().toJson(instance.source),
    };
