toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  var data = <String, dynamic>{};
  data['label'] = label;
  data['name'] = name;
  data['type'] = type;
  data['selected'] = selected;
  if (values != null) {
    data['values'] = values.map((v) => v.toJson()).toList();
  }
  return data;
}