63 lines
1.7 KiB
Dart
63 lines
1.7 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'sessionnotesmodel.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// TypeAdapterGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
class SessionNotesModelAdapter extends TypeAdapter<SessionNotesModel> {
|
||
|
@override
|
||
|
final int typeId = 4;
|
||
|
|
||
|
@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;
|
||
|
}
|