toJson method

  1. @override
Object toJson()
override

Implementation

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