toJson method

Map<String, dynamic> toJson()

Implementation

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