toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['id'] = this.id;
  data['name'] = this.name;
  data['label'] = this.label;
  data['classNames'] = this.classNames;
  data['defaultSelected'] = this.defaultSelected;
  data['selectType'] = this.selectType;
  if (this.attributes != null) {
    data['attributes'] = this.attributes!.map((v) => v.toJson()).toList();
  }
  if (this.configs != null) {
    data['configs'] = this.configs!.toJson();
  }
  data['isExclusive'] = this.isExclusive;
  data['componentType'] = this.componentType;
  data['componentKey'] = this.componentKey;
  return data;
}