// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'recent_product_model.dart';

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

class RecentProductAdapter extends TypeAdapter<RecentProduct> {
  @override
  final int typeId = 3;

  @override
  RecentProduct read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return RecentProduct(
      id: fields[0] as String,
      name: fields[1] as String,
      imageUrl: fields[2] as String,
      productSlug: fields[3] as String,
    );
  }

  @override
  void write(BinaryWriter writer, RecentProduct obj) {
    writer
      ..writeByte(4)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.name)
      ..writeByte(2)
      ..write(obj.imageUrl)
      ..writeByte(3)
      ..write(obj.productSlug);
  }

  @override
  int get hashCode => typeId.hashCode;

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