toJson method
Converts this object to a map for JSON serialization.
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (id != null) {
map['id'] = id;
}
if (type != null) {
map['type'] = type;
}
if (displayName != null) {
map['displayName'] = displayName;
}
if (executionText != null) {
map['executionText'] = executionText;
}
if (function != null) {
map['function'] = function!.toJson();
}
return map;
}