ProtoRtpCodecCapability constructor

ProtoRtpCodecCapability({
  1. String? kind,
  2. String? mimeType,
  3. int? preferredPayloadType,
  4. int? clockRate,
  5. int? channels,
  6. Map<String, String>? parameters,
  7. Iterable<ProtoRtpCodecCapability_ProtoRtcpFeedback>? rtcpFeedback,
})

Implementation

factory ProtoRtpCodecCapability({
  $core.String? kind,
  $core.String? mimeType,
  $core.int? preferredPayloadType,
  $core.int? clockRate,
  $core.int? channels,
  $core.Map<$core.String, $core.String>? parameters,
  $core.Iterable<ProtoRtpCodecCapability_ProtoRtcpFeedback>? rtcpFeedback,
}) {
  final $result = create();
  if (kind != null) {
    $result.kind = kind;
  }
  if (mimeType != null) {
    $result.mimeType = mimeType;
  }
  if (preferredPayloadType != null) {
    $result.preferredPayloadType = preferredPayloadType;
  }
  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;
}