Codec constructor

Codec({
  1. int? payloadType,
  2. String? name,
  3. String? fmtpLine,
  4. int? clockRate,
  5. String? encodingParameters,
  6. Iterable<String>? feedbacks,
})

Implementation

factory Codec({
  $core.int? payloadType,
  $core.String? name,
  $core.String? fmtpLine,
  $core.int? clockRate,
  $core.String? encodingParameters,
  $core.Iterable<$core.String>? feedbacks,
}) {
  final _result = create();
  if (payloadType != null) {
    _result.payloadType = payloadType;
  }
  if (name != null) {
    _result.name = name;
  }
  if (fmtpLine != null) {
    _result.fmtpLine = fmtpLine;
  }
  if (clockRate != null) {
    _result.clockRate = clockRate;
  }
  if (encodingParameters != null) {
    _result.encodingParameters = encodingParameters;
  }
  if (feedbacks != null) {
    _result.feedbacks.addAll(feedbacks);
  }
  return _result;
}