// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'display_data.dart';

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

class DisplayDataAdapter extends TypeAdapter<DisplayData> {
  @override
  final int typeId = 11;

  @override
  DisplayData read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return DisplayData(
      name: fields[0] as String,
      brewery: fields[1] as String,
      prefecture: fields[2] as String,
      catchCopy: fields[3] as String?,
      imagePaths: (fields[4] as List).cast<String>(),
      rating: fields[5] as double?,
      sakenowaName: fields[6] as String?,
      sakenowaBrewery: fields[7] as String?,
      sakenowaPrefecture: fields[8] as String?,
    );
  }

  @override
  void write(BinaryWriter writer, DisplayData obj) {
    writer
      ..writeByte(9)
      ..writeByte(0)
      ..write(obj.name)
      ..writeByte(1)
      ..write(obj.brewery)
      ..writeByte(2)
      ..write(obj.prefecture)
      ..writeByte(3)
      ..write(obj.catchCopy)
      ..writeByte(4)
      ..write(obj.imagePaths)
      ..writeByte(5)
      ..write(obj.rating)
      ..writeByte(6)
      ..write(obj.sakenowaName)
      ..writeByte(7)
      ..write(obj.sakenowaBrewery)
      ..writeByte(8)
      ..write(obj.sakenowaPrefecture);
  }

  @override
  int get hashCode => typeId.hashCode;

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