toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var description = this.description;
  var name = this.name;
  var startPointLayout = this.startPointLayout;
  var statuses = this.statuses;
  var transitions = this.transitions;

  final json = <String, Object?>{};
  if (description != null) {
    json[r'description'] = description;
  }
  json[r'name'] = name;
  if (startPointLayout != null) {
    json[r'startPointLayout'] = startPointLayout.toJson();
  }
  json[r'statuses'] = statuses.map((i) => i.toJson()).toList();
  json[r'transitions'] = transitions.map((i) => i.toJson()).toList();
  return json;
}