RealtimeCallReferRequest class

Request for referring (transferring) a call.

This endpoint transfers an ongoing call to another destination, typically a phone number for telephony integrations.

Example

await client.realtimeSessions.calls.refer(
  callId,
  RealtimeCallReferRequest(targetUri: 'tel:+14155550123'),
);
Annotations
  • @immutable

Constructors

RealtimeCallReferRequest({required String targetUri})
Creates a RealtimeCallReferRequest.
const
RealtimeCallReferRequest.fromJson(Map<String, dynamic> json)
Creates a RealtimeCallReferRequest from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetUri String
The target URI to transfer the call to (e.g., "tel:+14155550123").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override