// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dzikir_counter.dart';

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

class DzikirCounterAdapter extends TypeAdapter<DzikirCounter> {
  @override
  final int typeId = 3;

  @override
  DzikirCounter read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return DzikirCounter(
      dzikirId: fields[0] as String,
      date: fields[1] as String,
      count: fields[2] as int,
      target: fields[3] as int,
    );
  }

  @override
  void write(BinaryWriter writer, DzikirCounter obj) {
    writer
      ..writeByte(4)
      ..writeByte(0)
      ..write(obj.dzikirId)
      ..writeByte(1)
      ..write(obj.date)
      ..writeByte(2)
      ..write(obj.count)
      ..writeByte(3)
      ..write(obj.target);
  }

  @override
  int get hashCode => typeId.hashCode;

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