57 lines
1.5 KiB
Dart
57 lines
1.5 KiB
Dart
// 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;
|
|
}
|