52 lines
1.4 KiB
Dart
52 lines
1.4 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'engagement_interaction.dart';
|
|
|
|
// **************************************************************************
|
|
// TypeAdapterGenerator
|
|
// **************************************************************************
|
|
|
|
class InteractionConfigDataAdapter
|
|
extends TypeAdapter<InteractionConfigDataEng> {
|
|
@override
|
|
final int typeId = 19;
|
|
|
|
@override
|
|
InteractionConfigDataEng read(BinaryReader reader) {
|
|
final numOfFields = reader.readByte();
|
|
final fields = <int, dynamic>{
|
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
|
};
|
|
return InteractionConfigDataEng(
|
|
widgets: fields[1] as InteractionConfigDataEng,
|
|
id: fields[2] as String,
|
|
name: fields[3] as String,
|
|
formtype: fields[4] as String?,
|
|
);
|
|
}
|
|
|
|
@override
|
|
void write(BinaryWriter writer, InteractionConfigDataEng 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;
|
|
}
|