// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'anonymous_user_model.dart';

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

class AnonymousUserModelAdapter extends TypeAdapter<AnonymousUserModel> {
  @override
  final int typeId = 24;

  @override
  AnonymousUserModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return AnonymousUserModel(
      id: fields[0] as String,
      deviceId: fields[1] as String,
      name: fields[2] as String?,
      email: fields[3] as String?,
      createdAt: fields[4] as DateTime,
      convertedToUserId: fields[5] as String?,
      metadata: (fields[6] as Map?)?.cast<String, dynamic>(),
    );
  }

  @override
  void write(BinaryWriter writer, AnonymousUserModel obj) {
    writer
      ..writeByte(7)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.deviceId)
      ..writeByte(2)
      ..write(obj.name)
      ..writeByte(3)
      ..write(obj.email)
      ..writeByte(4)
      ..write(obj.createdAt)
      ..writeByte(5)
      ..write(obj.convertedToUserId)
      ..writeByte(6)
      ..write(obj.metadata);
  }

  @override
  int get hashCode => typeId.hashCode;

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