mobileApplicationsKonectarApp/lib/model/json_form_data.g.dart

168 lines
4.2 KiB
Dart
Raw Normal View History

2024-01-04 07:06:37 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'json_form_data.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class SendSaveJsonAdapter extends TypeAdapter<SendSaveJson> {
@override
final int typeId = 14;
@override
SendSaveJson read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return SendSaveJson(
savedList: (fields[0] as List).cast<SaveInteractionFormJson>(),
);
}
@override
void write(BinaryWriter writer, SendSaveJson obj) {
writer
..writeByte(1)
..writeByte(0)
..write(obj.savedList);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is SendSaveJsonAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class SaveInteractionFormJsonAdapter
extends TypeAdapter<SaveInteractionFormJson> {
@override
final int typeId = 15;
@override
SaveInteractionFormJson read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return SaveInteractionFormJson(
interactionForm1: fields[0] as String,
intId: fields[1] as String,
intName: fields[2] as String,
save: (fields[3] as List).cast<Save>(),
);
}
@override
void write(BinaryWriter writer, SaveInteractionFormJson obj) {
writer
..writeByte(4)
..writeByte(0)
..write(obj.interactionForm1)
..writeByte(1)
..write(obj.intId)
..writeByte(2)
..write(obj.intName)
..writeByte(3)
..write(obj.save);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is SaveInteractionFormJsonAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class SaveAdapter extends TypeAdapter<Save> {
@override
final int typeId = 16;
@override
Save read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return Save(
sectionName: fields[0] as String,
multipleSectionList: (fields[1] as List)
.map((dynamic e) => (e as List).cast<MultipleSectionList>())
.toList(),
);
}
@override
void write(BinaryWriter writer, Save obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.sectionName)
..writeByte(1)
..write(obj.multipleSectionList);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is SaveAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class MultipleSectionListAdapter extends TypeAdapter<MultipleSectionList> {
@override
final int typeId = 17;
@override
MultipleSectionList read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return MultipleSectionList(
id: fields[0] as String,
selectedValue: (fields[1] as List).cast<dynamic>(),
extension: (fields[3] as List?)?.cast<dynamic>(),
fileName: (fields[2] as List?)?.cast<dynamic>(),
);
}
@override
void write(BinaryWriter writer, MultipleSectionList obj) {
writer
..writeByte(4)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.selectedValue)
..writeByte(2)
..write(obj.fileName)
..writeByte(3)
..write(obj.extension);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is MultipleSectionListAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}