toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['videoBitrate'] = this.videoBitrate;
  data['videoResolution'] = this.videoResolution == null
      ? null
      : ResolutionTool.toInt(this.videoResolution!);
  data['videoResolutionMode'] = this.videoResolutionMode == null
      ? null
      : ResolutionModeTool.toInt(this.videoResolutionMode!);
  data['videoFps'] = this.videoFps;
  data['minVideoBitrate'] = this.minVideoBitrate;
  data['enableAdjustRes'] = this.enableAdjustRes;
  data.removeWhere((key, value) => value == null);
  return data;
}