Skip to main content

PlanStartedData

The data of the event planStarted, triggered when the user first starts the lesson plan.

import '../../gofa_lessons.dart';

class PlanStartedData extends EventData {
final String planId;
final Plan plan;
final String planPlayId;
final PlanPlay planPlay;

PlanStartedData({
required String? clientUserId,
required this.planId,
required this.plan,
required this.planPlayId,
required this.planPlay,
}) : super(clientUserId: clientUserId);

// toJson method
@override
Map<String, dynamic> toJson() {
return {
'clientUserId': clientUserId,
'planId': planId,
'plan': plan,
'planPlayId': planPlayId,
'planPlay': planPlay,
};
}
}