toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'mid': mid,
    'codecs':
        codecs.map((RtpCodecParameters codec) => codec.toMap()).toList(),
    'headerExtensions': headerExtensions
        .map((RtpHeaderExtensionParameters rtpHeaderExtensionParameters) =>
            rtpHeaderExtensionParameters.toMap())
        .toList(),
    'encodings': encodings
        .map((RtpEncodingParameters encoding) => encoding.toMap())
        .toList(),
    'rtcp': rtcp?.toMap(),
  };
}