toJson method

Map<String, dynamic> toJson()

Implementation

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