Implement husband-wife connection dialogue and theme support for learn articles
This commit is contained in:
56
lib/models/teaching_plan.g.dart
Normal file
56
lib/models/teaching_plan.g.dart
Normal file
@@ -0,0 +1,56 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'teaching_plan.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// TypeAdapterGenerator
|
||||
// **************************************************************************
|
||||
|
||||
class TeachingPlanAdapter extends TypeAdapter<TeachingPlan> {
|
||||
@override
|
||||
final int typeId = 10;
|
||||
|
||||
@override
|
||||
TeachingPlan read(BinaryReader reader) {
|
||||
final numOfFields = reader.readByte();
|
||||
final fields = <int, dynamic>{
|
||||
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
|
||||
};
|
||||
return TeachingPlan(
|
||||
id: fields[0] as String,
|
||||
topic: fields[1] as String,
|
||||
scriptureReference: fields[2] as String,
|
||||
notes: fields[3] as String,
|
||||
date: fields[4] as DateTime,
|
||||
isCompleted: fields[5] as bool,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void write(BinaryWriter writer, TeachingPlan obj) {
|
||||
writer
|
||||
..writeByte(6)
|
||||
..writeByte(0)
|
||||
..write(obj.id)
|
||||
..writeByte(1)
|
||||
..write(obj.topic)
|
||||
..writeByte(2)
|
||||
..write(obj.scriptureReference)
|
||||
..writeByte(3)
|
||||
..write(obj.notes)
|
||||
..writeByte(4)
|
||||
..write(obj.date)
|
||||
..writeByte(5)
|
||||
..write(obj.isCompleted);
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => typeId.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is TeachingPlanAdapter &&
|
||||
runtimeType == other.runtimeType &&
|
||||
typeId == other.typeId;
|
||||
}
|
||||
Reference in New Issue
Block a user