toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var description = this.description;
  var iconUrl = this.iconUrl;
  var name = this.name;
  var statusColor = this.statusColor;

  final json = <String, Object?>{};
  if (description != null) {
    json[r'description'] = description;
  }
  if (iconUrl != null) {
    json[r'iconUrl'] = iconUrl.value;
  }
  json[r'name'] = name;
  json[r'statusColor'] = statusColor;
  return json;
}