toJson method
Implementation
Map<String, dynamic> toJson() {
final nextActivity = this.nextActivity;
final percentage = this.percentage;
return {
if (nextActivity != null) 'NextActivity': nextActivity,
if (percentage != null) 'Percentage': percentage,
};
}