toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (promptTemplate.isNotDefault) 'promptTemplate': promptTemplate,
  'modelConfig': ?modelConfig?.toJson(),
  if (rubricContentType.isNotDefault)
    'rubricContentType': rubricContentType.toJson(),
  if (rubricTypeOntology.isNotDefault)
    'rubricTypeOntology': rubricTypeOntology,
};