dco_decode_call_info method

  1. @protected
CallInfo dco_decode_call_info(
  1. dynamic raw
)
override

Implementation

@protected
CallInfo dco_decode_call_info(dynamic raw) {
  // Codec=Dco (DartCObject based), see doc to use other codecs
  final arr = raw as List<dynamic>;
  if (arr.length != 3)
    throw Exception('unexpected arr length: expect 3 but see ${arr.length}');
  return CallInfo(
    callId: dco_decode_i_32(arr[0]),
    callUrl: dco_decode_String(arr[1]),
    state: dco_decode_call_state(arr[2]),
  );
}