RTCRTPCodec.fromMap constructor

RTCRTPCodec.fromMap(
  1. Map map
)

Implementation

factory RTCRTPCodec.fromMap(Map<dynamic, dynamic> map) {
  return RTCRTPCodec(
      payloadType: map['payloadType'],
      name: map['name'],
      kind: map['kind'],
      clockRate: map['clockRate'],
      numChannels: map['numChannels'] ?? 1,
      parameters: map['parameters']);
}