toJson method

Map<String, dynamic> toJson()

The OpenAI tool_calls entry for this call.

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'type': 'function',
      'function': {'name': name, 'arguments': argumentsJson},
    };