DiscoverModule/lib/ui_screen/interactionform/model/save_interaction.g.dart

57 lines
1.5 KiB
Dart
Raw Permalink Normal View History

2024-05-20 10:29:02 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'save_interaction.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class SaveInteractionAdapter extends TypeAdapter<SaveInteraction> {
@override
final int typeId = 3;
@override
SaveInteraction read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return SaveInteraction(
save: (fields[1] as List).cast<FormFieldData>(),
id: fields[0] as String,
form: fields[2] as String?,
updatedTime: fields[3] as String?,
intId: fields[4] as String,
intName: fields[5] as String,
);
}
@override
void write(BinaryWriter writer, SaveInteraction obj) {
writer
..writeByte(6)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.save)
..writeByte(2)
..write(obj.form)
..writeByte(3)
..write(obj.updatedTime)
..writeByte(4)
..write(obj.intId)
..writeByte(5)
..write(obj.intName);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is SaveInteractionAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}