toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'kind': RTCRtpMediaTypeExtension.value(kind),
    'mimeType': mimeType,
    'preferredPayloadType': preferredPayloadType,
    'clockRate': clockRate,
    'channels': channels,
    'parameters': parameters,
    'rtcpFeedback':
        rtcpFeedback.map((RtcpFeedback fb) => fb.toMap()).toList(),
  };
}