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;

  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();
  }
  return json;
}