toMap method

Map<String, int> toMap([
  1. bool stereoInMap = false
])

Implementation

Map<String, int> toMap([bool stereoInMap = false]) {
  return {
    if (spropStereo != null)
      stereoInMap ? 'stereo' : 'sprop-stereo': spropStereo!,
    if (useinbandfec != null) 'useinbandfec': useinbandfec!,
    if (usedtx != null) 'usedtx': usedtx!,
    if (maxplaybackrate != null) 'maxplaybackrate': maxplaybackrate!,
    if (maxaveragebitrate != null) 'maxaveragebitrate': maxaveragebitrate!,
    if (ptime != null) 'ptime': ptime!,
    if (xGoogleStartBitrate != null)
      'x-google-start-bitrate': xGoogleStartBitrate!,
    if (xGoogleMaxBitrate != null) 'x-google-max-bitrate': xGoogleMaxBitrate!,
    if (xGoogleMinBitrate != null) 'x-google-min-bitrate': xGoogleMinBitrate!,
  };
}