mobileApplicationsKonectarApp/lib/model/userdata_model.g.dart

54 lines
1.3 KiB
Dart
Raw Permalink Normal View History

2024-01-04 07:06:37 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'userdata_model.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class UserDataAdapter extends TypeAdapter<UserData> {
@override
final int typeId = 13;
@override
UserData read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return UserData(
email: fields[1] as String?,
name: fields[0] as String?,
domainUrl: fields[2] as String?,
imageBytes: fields[4] as String?,
secretkey: fields[3] as String?,
);
}
@override
void write(BinaryWriter writer, UserData obj) {
writer
..writeByte(5)
..writeByte(0)
..write(obj.name)
..writeByte(1)
..write(obj.email)
..writeByte(2)
..write(obj.domainUrl)
..writeByte(3)
..write(obj.secretkey)
..writeByte(4)
..write(obj.imageBytes);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is UserDataAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}