toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'id': id,
  'label': label,
  if (config.isNotEmpty) 'config': config,
};