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

351 lines
9.0 KiB
Dart
Raw Normal View History

2024-05-20 10:29:02 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'interaction_data.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class InteractionResultDataAdapter extends TypeAdapter<InteractionResultData> {
@override
final int typeId = 11;
@override
InteractionResultData read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return InteractionResultData(
result: (fields[0] as List).cast<FormFieldData>(),
id: fields[1] as String,
name: fields[2] as String,
);
}
@override
void write(BinaryWriter writer, InteractionResultData obj) {
writer
..writeByte(3)
..writeByte(0)
..write(obj.result)
..writeByte(1)
..write(obj.id)
..writeByte(2)
..write(obj.name);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is InteractionResultDataAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class FormFieldDataAdapter extends TypeAdapter<FormFieldData> {
@override
final int typeId = 4;
@override
FormFieldData read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return FormFieldData(
sectionName: fields[0] as String,
multiple: fields[1] as bool,
sectionList: (fields[2] as List).cast<SectionList>(),
multipleList: (fields[3] as List?)?.cast<SectionList>(),
);
}
@override
void write(BinaryWriter writer, FormFieldData obj) {
writer
..writeByte(4)
..writeByte(0)
..write(obj.sectionName)
..writeByte(1)
..write(obj.multiple)
..writeByte(2)
..write(obj.sectionList)
..writeByte(3)
..write(obj.multipleList);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is FormFieldDataAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class SectionListAdapter extends TypeAdapter<SectionList> {
@override
final int typeId = 5;
@override
SectionList read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return SectionList(
name: fields[0] as String,
param: fields[1] as String?,
id: fields[2] as String,
selectedValue: (fields[4] as List?)?.cast<dynamic>(),
depid: fields[5] as String?,
widget: fields[6] as InteractionWidget?,
input: fields[7] as String?,
gid: fields[3] as int?,
inputList: (fields[8] as List?)?.cast<InputClass>(),
2024-06-24 11:36:09 +00:00
isRequired: fields[9] as bool,
2024-05-20 10:29:02 +00:00
selectedObject: fields[12] as InputClass?,
selectedId: fields[11] as String?,
validation: fields[13] as Validation?,
chars: fields[14] as String?,
extension: (fields[15] as List?)?.cast<dynamic>(),
fileName: (fields[16] as List?)?.cast<dynamic>(),
tempselectedValue: (fields[17] as List?)?.cast<dynamic>(),
max: fields[18] as String?,
min: fields[19] as String?,
value: fields[10] as String?,
);
}
@override
void write(BinaryWriter writer, SectionList obj) {
writer
..writeByte(20)
..writeByte(0)
..write(obj.name)
..writeByte(1)
..write(obj.param)
..writeByte(2)
..write(obj.id)
..writeByte(3)
..write(obj.gid)
..writeByte(4)
..write(obj.selectedValue)
..writeByte(5)
..write(obj.depid)
..writeByte(6)
..write(obj.widget)
..writeByte(7)
..write(obj.input)
..writeByte(8)
..write(obj.inputList)
..writeByte(9)
..write(obj.isRequired)
..writeByte(10)
..write(obj.value)
..writeByte(11)
..write(obj.selectedId)
..writeByte(12)
..write(obj.selectedObject)
..writeByte(13)
..write(obj.validation)
..writeByte(14)
..write(obj.chars)
..writeByte(15)
..write(obj.extension)
..writeByte(16)
..write(obj.fileName)
..writeByte(17)
..write(obj.tempselectedValue)
..writeByte(18)
..write(obj.max)
..writeByte(19)
..write(obj.min);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is SectionListAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class InputClassAdapter extends TypeAdapter<InputClass> {
@override
final int typeId = 6;
@override
InputClass read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return InputClass(
id: fields[0] as dynamic,
name: fields[1] as String,
ischecked: fields[2] as bool?,
pid: fields[6] as String?,
selectedId: fields[3] as String?,
selectedItems: (fields[5] as List?)?.cast<String>(),
selectedName: fields[4] as String?,
);
}
@override
void write(BinaryWriter writer, InputClass obj) {
writer
..writeByte(7)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.name)
..writeByte(2)
..write(obj.ischecked)
..writeByte(3)
..write(obj.selectedId)
..writeByte(4)
..write(obj.selectedName)
..writeByte(5)
..write(obj.selectedItems)
..writeByte(6)
..write(obj.pid);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is InputClassAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class ValidationAdapter extends TypeAdapter<Validation> {
@override
final int typeId = 18;
@override
Validation read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return Validation(
isRequired: fields[0] as bool,
multipleFiles: fields[1] as bool?,
type: fields[2] as String?,
chars: fields[3] as String?,
);
}
@override
void write(BinaryWriter writer, Validation obj) {
writer
..writeByte(4)
..writeByte(0)
..write(obj.isRequired)
..writeByte(1)
..write(obj.multipleFiles)
..writeByte(2)
..write(obj.type)
..writeByte(3)
..write(obj.chars);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is ValidationAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class InteractionWidgetAdapter extends TypeAdapter<InteractionWidget> {
@override
final int typeId = 12;
@override
InteractionWidget read(BinaryReader reader) {
switch (reader.readByte()) {
case 0:
return InteractionWidget.CHECKBOX;
case 1:
return InteractionWidget.DROPDOWN;
case 2:
return InteractionWidget.LABEL;
case 3:
return InteractionWidget.RADIO;
case 4:
return InteractionWidget.TEXT;
case 5:
return InteractionWidget.BUTTON;
case 6:
return InteractionWidget.AUTOCOMPLETE;
case 7:
return InteractionWidget.MULTISELECT;
case 8:
return InteractionWidget.RANGESLIDER;
default:
return InteractionWidget.CHECKBOX;
}
}
@override
void write(BinaryWriter writer, InteractionWidget obj) {
switch (obj) {
case InteractionWidget.CHECKBOX:
writer.writeByte(0);
break;
case InteractionWidget.DROPDOWN:
writer.writeByte(1);
break;
case InteractionWidget.LABEL:
writer.writeByte(2);
break;
case InteractionWidget.RADIO:
writer.writeByte(3);
break;
case InteractionWidget.TEXT:
writer.writeByte(4);
break;
case InteractionWidget.BUTTON:
writer.writeByte(5);
break;
case InteractionWidget.AUTOCOMPLETE:
writer.writeByte(6);
break;
case InteractionWidget.MULTISELECT:
writer.writeByte(7);
break;
case InteractionWidget.RANGESLIDER:
writer.writeByte(8);
break;
}
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is InteractionWidgetAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}