toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final maxVideoBitsPerSecond = this.maxVideoBitsPerSecond;
  final minVideoBitsPerSecond = this.minVideoBitsPerSecond;
  final streamOrder = this.streamOrder;
  return {
    if (maxVideoBitsPerSecond != null)
      'maxVideoBitsPerSecond': maxVideoBitsPerSecond,
    if (minVideoBitsPerSecond != null)
      'minVideoBitsPerSecond': minVideoBitsPerSecond,
    if (streamOrder != null) 'streamOrder': streamOrder.toValue(),
  };
}