2024-09-06 06:30:31 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'sessionnotesmodel.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// TypeAdapterGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
class SessionNotesModelAdapter extends TypeAdapter<SessionNotesModel> {
|
|
|
|
@override
|
2024-10-08 12:01:59 +00:00
|
|
|
final int typeId = 24;
|
2024-09-06 06:30:31 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
SessionNotesModel read(BinaryReader reader) {
|
|
|
|
final numOfFields = reader.readByte();
|
|
|
|
final fields = <int, dynamic>{
|
|
|
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
|
|
|
};
|
|
|
|
return SessionNotesModel(
|
|
|
|
selectedSession: fields[0] as String?,
|
|
|
|
addedBy: fields[4] as String?,
|
|
|
|
addedDate: fields[5] as String?,
|
|
|
|
eventid: fields[3] as String?,
|
|
|
|
hcpid: fields[2] as String?,
|
|
|
|
hcpname: fields[7] as String?,
|
|
|
|
eventname: fields[6] as String?,
|
|
|
|
notes: fields[1] as String?,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
void write(BinaryWriter writer, SessionNotesModel obj) {
|
|
|
|
writer
|
|
|
|
..writeByte(8)
|
|
|
|
..writeByte(0)
|
|
|
|
..write(obj.selectedSession)
|
|
|
|
..writeByte(1)
|
|
|
|
..write(obj.notes)
|
|
|
|
..writeByte(2)
|
|
|
|
..write(obj.hcpid)
|
|
|
|
..writeByte(3)
|
|
|
|
..write(obj.eventid)
|
|
|
|
..writeByte(4)
|
|
|
|
..write(obj.addedBy)
|
|
|
|
..writeByte(5)
|
|
|
|
..write(obj.addedDate)
|
|
|
|
..writeByte(6)
|
|
|
|
..write(obj.eventname)
|
|
|
|
..writeByte(7)
|
|
|
|
..write(obj.hcpname);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode => typeId.hashCode;
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
identical(this, other) ||
|
|
|
|
other is SessionNotesModelAdapter &&
|
|
|
|
runtimeType == other.runtimeType &&
|
|
|
|
typeId == other.typeId;
|
|
|
|
}
|