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;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (statusColor != null) {
    json[r'statusColor'] = statusColor;
  }
  return json;
}