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