// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'payment_reminder_model.dart';

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

class PaymentReminderModelAdapter extends TypeAdapter<PaymentReminderModel> {
  @override
  final typeId = 23;

  @override
  PaymentReminderModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return PaymentReminderModel(
      reminderId: fields[0] as String,
      invoiceId: fields[1] as String,
      userId: fields[2] as String,
      reminderType: fields[3] as ReminderType,
      subject: fields[4] as String,
      message: fields[5] as String,
      isRead: fields[6] as bool,
      isSent: fields[7] as bool,
      scheduledAt: fields[8] as DateTime?,
      sentAt: fields[9] as DateTime?,
      readAt: fields[10] as DateTime?,
    );
  }

  @override
  void write(BinaryWriter writer, PaymentReminderModel obj) {
    writer
      ..writeByte(11)
      ..writeByte(0)
      ..write(obj.reminderId)
      ..writeByte(1)
      ..write(obj.invoiceId)
      ..writeByte(2)
      ..write(obj.userId)
      ..writeByte(3)
      ..write(obj.reminderType)
      ..writeByte(4)
      ..write(obj.subject)
      ..writeByte(5)
      ..write(obj.message)
      ..writeByte(6)
      ..write(obj.isRead)
      ..writeByte(7)
      ..write(obj.isSent)
      ..writeByte(8)
      ..write(obj.scheduledAt)
      ..writeByte(9)
      ..write(obj.sentAt)
      ..writeByte(10)
      ..write(obj.readAt);
  }

  @override
  int get hashCode => typeId.hashCode;

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