// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'prayer_request.dart';

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

class PrayerRequestAdapter extends TypeAdapter<PrayerRequest> {
  @override
  final int typeId = 15;

  @override
  PrayerRequest read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return PrayerRequest(
      id: fields[0] as String,
      request: fields[1] as String,
      isAnswered: fields[2] as bool,
      createdAt: fields[3] as DateTime,
      updatedAt: fields[4] as DateTime,
    );
  }

  @override
  void write(BinaryWriter writer, PrayerRequest obj) {
    writer
      ..writeByte(5)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.request)
      ..writeByte(2)
      ..write(obj.isAnswered)
      ..writeByte(3)
      ..write(obj.createdAt)
      ..writeByte(4)
      ..write(obj.updatedAt);
  }

  @override
  int get hashCode => typeId.hashCode;

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