// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'sake_taste_stats.dart';

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

class SakeTasteStatsAdapter extends TypeAdapter<SakeTasteStats> {
  @override
  final int typeId = 21;

  @override
  SakeTasteStats read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return SakeTasteStats(
      aroma: fields[0] as double,
      bitterness: fields[1] as double,
      sweetness: fields[2] as double,
      acidity: fields[3] as double,
      body: fields[4] as double,
    );
  }

  @override
  void write(BinaryWriter writer, SakeTasteStats obj) {
    writer
      ..writeByte(5)
      ..writeByte(0)
      ..write(obj.aroma)
      ..writeByte(1)
      ..write(obj.bitterness)
      ..writeByte(2)
      ..write(obj.sweetness)
      ..writeByte(3)
      ..write(obj.acidity)
      ..writeByte(4)
      ..write(obj.body);
  }

  @override
  int get hashCode => typeId.hashCode;

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