toJson method
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(),
};
}