toJson method
Implementation
Map<String, dynamic> toJson() {
final algorithm = this.algorithm;
final control = this.control;
final mode = this.mode;
return {
if (algorithm != null) 'algorithm': algorithm.toValue(),
if (control != null) 'control': control.toValue(),
if (mode != null) 'mode': mode.toValue(),
};
}