// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'showroom_product_model.dart';

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

class ShowroomProductModelAdapter extends TypeAdapter<ShowroomProductModel> {
  @override
  final typeId = 22;

  @override
  ShowroomProductModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return ShowroomProductModel(
      showroomId: fields[0] as String,
      productId: fields[1] as String,
      quantityUsed: (fields[2] as num).toDouble(),
    );
  }

  @override
  void write(BinaryWriter writer, ShowroomProductModel obj) {
    writer
      ..writeByte(3)
      ..writeByte(0)
      ..write(obj.showroomId)
      ..writeByte(1)
      ..write(obj.productId)
      ..writeByte(2)
      ..write(obj.quantityUsed);
  }

  @override
  int get hashCode => typeId.hashCode;

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