toJson method
Implementation
Map<String, Object?> toJson() {
var actions = this.actions;
var conditions = this.conditions;
var customIssueEventId = this.customIssueEventId;
var description = this.description;
var from = this.from;
var id = this.id;
var name = this.name;
var properties = this.properties;
var to = this.to;
var transitionScreen = this.transitionScreen;
var triggers = this.triggers;
var type = this.type;
var validators = this.validators;
final json = <String, Object?>{};
json[r'actions'] = actions.map((i) => i.toJson()).toList();
if (conditions != null) {
json[r'conditions'] = conditions.toJson();
}
if (customIssueEventId != null) {
json[r'customIssueEventId'] = customIssueEventId;
}
if (description != null) {
json[r'description'] = description;
}
json[r'from'] = from.map((i) => i.toJson()).toList();
if (id != null) {
json[r'id'] = id;
}
if (name != null) {
json[r'name'] = name;
}
if (properties != null) {
json[r'properties'] = properties;
}
if (to != null) {
json[r'to'] = to.toJson();
}
if (transitionScreen != null) {
json[r'transitionScreen'] = transitionScreen.toJson();
}
json[r'triggers'] = triggers.map((i) => i.toJson()).toList();
if (type != null) {
json[r'type'] = type.value;
}
json[r'validators'] = validators.map((i) => i.toJson()).toList();
return json;
}