// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'tilawah_log.dart';

// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************

class TilawahLogAdapter extends TypeAdapter<TilawahLog> {
  @override
  final int typeId = 8;

  @override
  TilawahLog read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return TilawahLog(
      targetValue: fields[0] as int,
      targetUnit: fields[1] as String,
      currentProgress: fields[2] as int,
      autoSync: fields[3] as bool,
      rawAyatRead: fields[4] as int? ?? 0,
      targetCompleted: fields[5] as bool? ?? false,
    );
  }

  @override
  void write(BinaryWriter writer, TilawahLog obj) {
    writer
      ..writeByte(6)
      ..writeByte(0)
      ..write(obj.targetValue)
      ..writeByte(1)
      ..write(obj.targetUnit)
      ..writeByte(2)
      ..write(obj.currentProgress)
      ..writeByte(3)
      ..write(obj.autoSync)
      ..writeByte(4)
      ..write(obj.rawAyatRead)
      ..writeByte(5)
      ..write(obj.targetCompleted);
  }

  @override
  int get hashCode => typeId.hashCode;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is TilawahLogAdapter &&
          runtimeType == other.runtimeType &&
          typeId == other.typeId;
}
