toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => {
      'type': 'computer_call_output',
      'call_id': callId,
      'output': output.toJson(),
      if (acknowledgedSafetyChecks != null) 'acknowledged_safety_checks': acknowledgedSafetyChecks!.map((e) => e.toJson()).toList(),
      if (id != null) 'id': id,
      if (status != null) 'status': status!.toJson(),
    };