toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var links = this.links;
  var completedCycles = this.completedCycles;
  var id = this.id;
  var name = this.name;
  var ongoingCycle = this.ongoingCycle;
  var slaDisplayFormat = this.slaDisplayFormat;

  final json = <String, Object?>{};
  if (links != null) {
    json[r'_links'] = links.toJson();
  }
  json[r'completedCycles'] = completedCycles.map((i) => i.toJson()).toList();
  if (id != null) {
    json[r'id'] = id;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (ongoingCycle != null) {
    json[r'ongoingCycle'] = ongoingCycle.toJson();
  }
  if (slaDisplayFormat != null) {
    json[r'slaDisplayFormat'] = slaDisplayFormat;
  }
  return json;
}