toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var selected = this.selected;
  var global = this.global;
  var theme = this.theme;
  var custom = this.custom;

  final json = <String, Object?>{};
  json[r'selected'] = selected.value;
  json[r'global'] = global.toJson();
  if (theme != null) {
    json[r'theme'] = theme.toJson();
  }
  json[r'custom'] = custom.toJson();
  return json;
}