encodeOutgoingCall static method

Map<String, Object?> encodeOutgoingCall(
  1. OutgoingCall call
)

Encodes and validates an outgoing call before crossing a channel.

Implementation

static Map<String, Object?> encodeOutgoingCall(OutgoingCall call) => {
  'version': version,
  'callId': _validatedId(call.callId.value),
  'callee': _encodeCaller(call.callee),
  'media': call.media.name,
};