PlanCancelledData
The data of the event planCancelled, triggered when the user resets the plan using the reset button on the plan detail screen, indicating plan progress cancellation
import '../../gofa_lessons.dart';
class PlanCancelledData extends EventData {
final String planId;
final Plan? plan;
final String planPlayId;
final PlanPlay? planPlay;
PlanCancelledData({
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?.toJson(),
'planPlayId': planPlayId,
'planPlay': planPlay?.toJson(),
};
}
}