// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'hidden_specs.dart';

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

class HiddenSpecsAdapter extends TypeAdapter<HiddenSpecs> {
  @override
  final int typeId = 12;

  @override
  HiddenSpecs read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return HiddenSpecs(
      description: fields[0] as String?,
      tasteStats: (fields[1] as Map).cast<String, int>(),
      flavorTags: (fields[2] as List).cast<String>(),
      sweetnessScore: fields[3] as double?,
      bodyScore: fields[4] as double?,
      type: fields[5] as String?,
      alcoholContent: fields[6] as double?,
      polishingRatio: fields[7] as int?,
      sakeMeterValue: fields[8] as double?,
      riceVariety: fields[9] as String?,
      yeast: fields[10] as String?,
      manufacturingYearMonth: fields[11] as String?,
      qrCodeUrl: fields[12] as String?,
      sakenowaFlavorChart: (fields[13] as Map?)?.cast<String, double>(),
      sakenowaBrandId: fields[14] as int?,
    );
  }

  @override
  void write(BinaryWriter writer, HiddenSpecs obj) {
    writer
      ..writeByte(15)
      ..writeByte(0)
      ..write(obj.description)
      ..writeByte(1)
      ..write(obj.tasteStats)
      ..writeByte(2)
      ..write(obj.flavorTags)
      ..writeByte(3)
      ..write(obj.sweetnessScore)
      ..writeByte(4)
      ..write(obj.bodyScore)
      ..writeByte(5)
      ..write(obj.type)
      ..writeByte(6)
      ..write(obj.alcoholContent)
      ..writeByte(7)
      ..write(obj.polishingRatio)
      ..writeByte(8)
      ..write(obj.sakeMeterValue)
      ..writeByte(9)
      ..write(obj.riceVariety)
      ..writeByte(10)
      ..write(obj.yeast)
      ..writeByte(11)
      ..write(obj.manufacturingYearMonth)
      ..writeByte(12)
      ..write(obj.qrCodeUrl)
      ..writeByte(13)
      ..write(obj.sakenowaFlavorChart)
      ..writeByte(14)
      ..write(obj.sakenowaBrandId);
  }

  @override
  int get hashCode => typeId.hashCode;

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