toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final codec = this.codec;
  final maximumBitrate = this.maximumBitrate;
  final resolution = this.resolution;
  return {
    if (codec != null) 'codec': codec.toValue(),
    if (maximumBitrate != null) 'maximumBitrate': maximumBitrate.toValue(),
    if (resolution != null) 'resolution': resolution.toValue(),
  };
}