toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bitrate = this.bitrate;
  final codingMode = this.codingMode;
  final inputType = this.inputType;
  final profile = this.profile;
  final rateControlMode = this.rateControlMode;
  final rawFormat = this.rawFormat;
  final sampleRate = this.sampleRate;
  final spec = this.spec;
  final vbrQuality = this.vbrQuality;
  return {
    if (bitrate != null) 'bitrate': bitrate,
    if (codingMode != null) 'codingMode': codingMode.toValue(),
    if (inputType != null) 'inputType': inputType.toValue(),
    if (profile != null) 'profile': profile.toValue(),
    if (rateControlMode != null) 'rateControlMode': rateControlMode.toValue(),
    if (rawFormat != null) 'rawFormat': rawFormat.toValue(),
    if (sampleRate != null) 'sampleRate': sampleRate,
    if (spec != null) 'spec': spec.toValue(),
    if (vbrQuality != null) 'vbrQuality': vbrQuality.toValue(),
  };
}