toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var themeKey = this.themeKey;
  var name = this.name;
  var description = this.description;
  var icon = this.icon;
  var links = this.links;

  final json = <String, Object?>{};
  json[r'themeKey'] = themeKey;
  if (name != null) {
    json[r'name'] = name;
  }
  if (description != null) {
    json[r'description'] = description;
  }
  if (icon != null) {
    json[r'icon'] = icon.toJson();
  }
  if (links != null) {
    json[r'_links'] = links.toJson();
  }
  return json;
}