mobileapplicationPassvault/lib/hive_storage/add_creds_offline.g.dart

48 lines
1.2 KiB
Dart
Raw Normal View History

2024-04-12 05:23:32 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'add_creds_offline.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class AddofflinecredentialAdapter extends TypeAdapter<Addofflinecredential> {
@override
final int typeId = 1;
@override
Addofflinecredential read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return Addofflinecredential(
fields[0] as String,
fields[1] as int,
fields[2] as bool,
);
}
@override
void write(BinaryWriter writer, Addofflinecredential obj) {
writer
..writeByte(3)
..writeByte(0)
..write(obj.username)
..writeByte(1)
..write(obj.usrid)
..writeByte(2)
..write(obj.isChecked);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is AddofflinecredentialAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}