toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'output_text',
'text': text,
'annotations': annotations.map((e) => e.toJson()).toList(),
if (logProbs != null) 'log_probs': logProbs!.map((e) => e.toJson()).toList(),
};