toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'name': name,
  if (description != null) 'description': description,
  'prompt': prompt,
  if (annotations.isNotEmpty) 'annotations': annotations,
};