mobileapplicationPassvault/lib/hive_storage/store_credential_model.g.dart

90 lines
2.5 KiB
Dart
Raw Normal View History

2024-04-12 05:23:32 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'store_credential_model.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class StoredcredentialAdapter extends TypeAdapter<Storedcredential> {
@override
final int typeId = 0;
@override
Storedcredential read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return Storedcredential(
id: fields[0] as int,
name: fields[1] as String,
username: fields[2] as String,
password: fields[3] as String,
detail: fields[4] as String,
createdBy: fields[5] as int,
modifiedBy: fields[6] as int? ?? 0,
createdAt: fields[7] as dynamic,
updatedAt: fields[8] as dynamic,
isOfflinecreated: fields[9] as bool,
isOfflineupdate: fields[10] as bool,
isOfflinedelete: fields[11] as bool,
isOfflineshare: fields[12] as bool,
issync: fields[13] as bool,
uid: fields[14] as int,
sharedUserIds: (fields[15] as List).cast<int>(),
DeletedUserIds: (fields[16] ?? []).cast<int>(),
);
}
@override
void write(BinaryWriter writer, Storedcredential obj) {
writer
..writeByte(17)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.name)
..writeByte(2)
..write(obj.username)
..writeByte(3)
..write(obj.password)
..writeByte(4)
..write(obj.detail)
..writeByte(5)
..write(obj.createdBy)
..writeByte(6)
..write(obj.modifiedBy)
..writeByte(7)
..write(obj.createdAt)
..writeByte(8)
..write(obj.updatedAt)
..writeByte(9)
..write(obj.isOfflinecreated)
..writeByte(10)
..write(obj.isOfflineupdate)
..writeByte(11)
..write(obj.isOfflinedelete)
..writeByte(12)
..write(obj.isOfflineshare)
..writeByte(13)
..write(obj.issync)
..writeByte(14)
..write(obj.uid)
..writeByte(15)
..write(obj.sharedUserIds)
..writeByte(16)
..write(obj.DeletedUserIds);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is StoredcredentialAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}