toJson method
Implementation
@override
Object toJson() => {
if (prediction != null) 'prediction': prediction,
if (reference != null) 'reference': reference,
if (context != null) 'context': context,
if (instruction != null) 'instruction': instruction,
};