toJson method
Implementation
Map<String, Object?> toJson() {
var defaultStatusMappings = this.defaultStatusMappings;
var description = this.description;
var id = this.id;
var startPointLayout = this.startPointLayout;
var statusMappings = this.statusMappings;
var statuses = this.statuses;
var transitions = this.transitions;
var version = this.version;
final json = <String, Object?>{};
json[r'defaultStatusMappings'] =
defaultStatusMappings.map((i) => i.toJson()).toList();
if (description != null) {
json[r'description'] = description;
}
json[r'id'] = id;
if (startPointLayout != null) {
json[r'startPointLayout'] = startPointLayout.toJson();
}
json[r'statusMappings'] = statusMappings.map((i) => i.toJson()).toList();
json[r'statuses'] = statuses.map((i) => i.toJson()).toList();
json[r'transitions'] = transitions.map((i) => i.toJson()).toList();
json[r'version'] = version.toJson();
return json;
}