// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'cached_prayer_times.dart';

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

class CachedPrayerTimesAdapter extends TypeAdapter<CachedPrayerTimes> {
  @override
  final int typeId = 5;

  @override
  CachedPrayerTimes read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return CachedPrayerTimes(
      key: fields[0] as String,
      lat: fields[1] as double,
      lng: fields[2] as double,
      date: fields[3] as String,
      fajr: fields[4] as DateTime,
      sunrise: fields[5] as DateTime,
      dhuhr: fields[6] as DateTime,
      asr: fields[7] as DateTime,
      maghrib: fields[8] as DateTime,
      isha: fields[9] as DateTime,
    );
  }

  @override
  void write(BinaryWriter writer, CachedPrayerTimes obj) {
    writer
      ..writeByte(10)
      ..writeByte(0)
      ..write(obj.key)
      ..writeByte(1)
      ..write(obj.lat)
      ..writeByte(2)
      ..write(obj.lng)
      ..writeByte(3)
      ..write(obj.date)
      ..writeByte(4)
      ..write(obj.fajr)
      ..writeByte(5)
      ..write(obj.sunrise)
      ..writeByte(6)
      ..write(obj.dhuhr)
      ..writeByte(7)
      ..write(obj.asr)
      ..writeByte(8)
      ..write(obj.maghrib)
      ..writeByte(9)
      ..write(obj.isha);
  }

  @override
  int get hashCode => typeId.hashCode;

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