94 lines
2.3 KiB
Dart
94 lines
2.3 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'events_details.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// TypeAdapterGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
class TopSpeakersAdapter extends TypeAdapter<TopSpeakers> {
|
||
|
@override
|
||
|
final int typeId = 103;
|
||
|
|
||
|
@override
|
||
|
TopSpeakers read(BinaryReader reader) {
|
||
|
final numOfFields = reader.readByte();
|
||
|
final fields = <int, dynamic>{
|
||
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
||
|
};
|
||
|
return TopSpeakers(
|
||
|
firstName: fields[0] as String?,
|
||
|
middleName: fields[1] as dynamic,
|
||
|
lastName: fields[2] as dynamic,
|
||
|
numSess: fields[3] as String?,
|
||
|
);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void write(BinaryWriter writer, TopSpeakers obj) {
|
||
|
writer
|
||
|
..writeByte(4)
|
||
|
..writeByte(0)
|
||
|
..write(obj.firstName)
|
||
|
..writeByte(1)
|
||
|
..write(obj.middleName)
|
||
|
..writeByte(2)
|
||
|
..write(obj.lastName)
|
||
|
..writeByte(3)
|
||
|
..write(obj.numSess);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
int get hashCode => typeId.hashCode;
|
||
|
|
||
|
@override
|
||
|
bool operator ==(Object other) =>
|
||
|
identical(this, other) ||
|
||
|
other is TopSpeakersAdapter &&
|
||
|
runtimeType == other.runtimeType &&
|
||
|
typeId == other.typeId;
|
||
|
}
|
||
|
|
||
|
class EventSponserAdapter extends TypeAdapter<EventSponser> {
|
||
|
@override
|
||
|
final int typeId = 104;
|
||
|
|
||
|
@override
|
||
|
EventSponser read(BinaryReader reader) {
|
||
|
final numOfFields = reader.readByte();
|
||
|
final fields = <int, dynamic>{
|
||
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
||
|
};
|
||
|
return EventSponser(
|
||
|
numSess: fields[0] as String?,
|
||
|
sessionSponsor: fields[1] as String?,
|
||
|
type: fields[2] as String?,
|
||
|
sponsorsType: fields[3] as String?,
|
||
|
);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void write(BinaryWriter writer, EventSponser obj) {
|
||
|
writer
|
||
|
..writeByte(4)
|
||
|
..writeByte(0)
|
||
|
..write(obj.numSess)
|
||
|
..writeByte(1)
|
||
|
..write(obj.sessionSponsor)
|
||
|
..writeByte(2)
|
||
|
..write(obj.type)
|
||
|
..writeByte(3)
|
||
|
..write(obj.sponsorsType);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
int get hashCode => typeId.hashCode;
|
||
|
|
||
|
@override
|
||
|
bool operator ==(Object other) =>
|
||
|
identical(this, other) ||
|
||
|
other is EventSponserAdapter &&
|
||
|
runtimeType == other.runtimeType &&
|
||
|
typeId == other.typeId;
|
||
|
}
|