toJson method

  1. @override
Map<String, dynamic> toJson()
override

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(),
    };