content: // GENERATED CODE - DO NOT MODIFY BY HAND
  
  part of 'history.dart';
  
  // **************************************************************************
  // TypeAdapterGenerator
  // **************************************************************************
  
  class HistoryAdapter extends TypeAdapter<History> {
    @override
    final int typeId = 0;
  
    @override
    History read(BinaryReader reader) {
      final numOfFields = reader.readByte();
      final fields = <int, dynamic>{
        for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
      };
      return History(
        fields[3] as Series,
        fields[1] as int,
        fields[2] as String,
        fields[4] as DateTime,
      )..progresses = (fields[0] as Map).cast<int, Progress>();
    }
  
    @override
    void write(BinaryWriter writer, History obj) {
      writer
        ..writeByte(5)
        ..writeByte(0)
        ..write(obj.progresses)
        ..writeByte(1)
        ..write(obj.lastWatchEpisode)
        ..writeByte(2)
        ..write(obj.adapterName)
        ..writeByte(3)
        ..write(obj.series)
        ..writeByte(4)
        ..write(obj.lastWatchTime);
    }
  
    @override
    int get hashCode => typeId.hashCode;
  
    @override
    bool operator ==(Object other) =>
        identical(this, other) ||
        other is HistoryAdapter &&
            runtimeType == other.runtimeType &&
            typeId == other.typeId;
  }
  
  class ProgressAdapter extends TypeAdapter<Progress> {
    @override
    final int typeId = 1;
  
    @override
    Progress read(BinaryReader reader) {
      final numOfFields = reader.readByte();
      final fields = <int, dynamic>{
        for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
      };
      return Progress(
        fields[0] as Episode,
        fields[1] as int,
      );
    }
  
    @override
    void write(BinaryWriter writer, Progress obj) {
      writer
        ..writeByte(2)
        ..writeByte(0)
        ..write(obj.episode)
        ..writeByte(1)
        ..write(obj._progressInMilli);
    }
  
    @override
    int get hashCode => typeId.hashCode;
  
    @override
    bool operator ==(Object other) =>
        identical(this, other) ||
        other is ProgressAdapter &&
            runtimeType == other.runtimeType &&
            typeId == other.typeId;
  }
  