// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'puasa_log.dart';

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

class PuasaLogAdapter extends TypeAdapter<PuasaLog> {
  @override
  final int typeId = 10;

  @override
  PuasaLog read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return PuasaLog(
      jenisPuasa: fields[0] as String?,
      completed: fields[1] as bool,
    );
  }

  @override
  void write(BinaryWriter writer, PuasaLog obj) {
    writer
      ..writeByte(2)
      ..writeByte(0)
      ..write(obj.jenisPuasa)
      ..writeByte(1)
      ..write(obj.completed);
  }

  @override
  int get hashCode => typeId.hashCode;

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