toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final condition = this.condition;
  final evaluationWaitTime = this.evaluationWaitTime;
  final falseActivity = this.falseActivity;
  final trueActivity = this.trueActivity;
  return {
    if (condition != null) 'Condition': condition,
    if (evaluationWaitTime != null) 'EvaluationWaitTime': evaluationWaitTime,
    if (falseActivity != null) 'FalseActivity': falseActivity,
    if (trueActivity != null) 'TrueActivity': trueActivity,
  };
}