toJson method

Map<String, dynamic> toJson()

Implementation

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