toJson method
Implementation
@override
Object toJson() => {
if (answer != null) 'answer': answer!.toJson(),
if (answerableProbability != null)
'answerableProbability': encodeDouble(answerableProbability),
if (inputFeedback != null) 'inputFeedback': inputFeedback!.toJson(),
};