ProtoCodecParameters constructor

ProtoCodecParameters({
  1. String? mimeType,
  2. int? payloadType,
  3. int? clockRate,
  4. int? channels,
  5. Map<String, String>? parameters,
  6. Iterable<ProtoRtcpFeedback>? rtcpFeedback,
})

Implementation

factory ProtoCodecParameters({
  $core.String? mimeType,
  $core.int? payloadType,
  $core.int? clockRate,
  $core.int? channels,
  $core.Map<$core.String, $core.String>? parameters,
  $core.Iterable<ProtoRtcpFeedback>? rtcpFeedback,
}) {
  final $result = create();
  if (mimeType != null) {
    $result.mimeType = mimeType;
  }
  if (payloadType != null) {
    $result.payloadType = payloadType;
  }
  if (clockRate != null) {
    $result.clockRate = clockRate;
  }
  if (channels != null) {
    $result.channels = channels;
  }
  if (parameters != null) {
    $result.parameters.addAll(parameters);
  }
  if (rtcpFeedback != null) {
    $result.rtcpFeedback.addAll(rtcpFeedback);
  }
  return $result;
}