toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var icon = this.icon;
  var status = this.status;
  var summary = this.summary;
  var title = this.title;
  var url = this.url;

  final json = <String, Object?>{};
  if (icon != null) {
    json[r'icon'] = icon.toJson();
  }
  if (status != null) {
    json[r'status'] = status.toJson();
  }
  if (summary != null) {
    json[r'summary'] = summary;
  }
  json[r'title'] = title;
  json[r'url'] = url;
  return json;
}