toMap method

Map<String, dynamic> toMap()

Converts this choice to map data.

Implementation

Map<String, dynamic> toMap() => {
      'text': text,
      'index': index,
      'logprobs': logprobs,
      'finish_reason': finishReason,
      'message': message,
      'messageType': messageType.name,
    };