toJson method
Implementation
@override
Object toJson() => {
if (draftModelSpeculation != null)
'draftModelSpeculation': draftModelSpeculation!.toJson(),
if (ngramSpeculation != null)
'ngramSpeculation': ngramSpeculation!.toJson(),
if (speculativeTokenCount.isNotDefault)
'speculativeTokenCount': speculativeTokenCount,
};