toJson method

Map<String, dynamic> toJson()

Implementation

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