toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (answer != null) 'answer': answer!,
if (answerRecord != null) 'answerRecord': answerRecord!,
if (confidence != null) 'confidence': confidence!,
if (metadata != null) 'metadata': metadata!,
if (question != null) 'question': question!,
if (source != null) 'source': source!,
};