toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'label': label,
  if (description != null) 'description': description,
  if (detail != null) 'detail': detail,
  'picked': picked,
  if (value != null) 'value': value,
};