51 lines
1.3 KiB
Dart
51 lines
1.3 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'interaction_config_data.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// TypeAdapterGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
class InteractionConfigDataAdapter extends TypeAdapter<InteractionConfigData> {
|
||
|
@override
|
||
|
final int typeId = 19;
|
||
|
|
||
|
@override
|
||
|
InteractionConfigData read(BinaryReader reader) {
|
||
|
final numOfFields = reader.readByte();
|
||
|
final fields = <int, dynamic>{
|
||
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
||
|
};
|
||
|
return InteractionConfigData(
|
||
|
widgets: fields[1] as InteractionResultData,
|
||
|
id: fields[2] as String,
|
||
|
name: fields[3] as String,
|
||
|
formtype: fields[4] as String?,
|
||
|
);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void write(BinaryWriter writer, InteractionConfigData obj) {
|
||
|
writer
|
||
|
..writeByte(4)
|
||
|
..writeByte(1)
|
||
|
..write(obj.widgets)
|
||
|
..writeByte(2)
|
||
|
..write(obj.id)
|
||
|
..writeByte(3)
|
||
|
..write(obj.name)
|
||
|
..writeByte(4)
|
||
|
..write(obj.formtype);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
int get hashCode => typeId.hashCode;
|
||
|
|
||
|
@override
|
||
|
bool operator ==(Object other) =>
|
||
|
identical(this, other) ||
|
||
|
other is InteractionConfigDataAdapter &&
|
||
|
runtimeType == other.runtimeType &&
|
||
|
typeId == other.typeId;
|
||
|
}
|