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