toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"scenario": scenario?.value,
"onlineProcessingConfig": onlineProcessingConfig?.toJson(),
"livePortrait": _bytesToBase64(livePortrait),
"extPortrait": _bytesToBase64(extPortrait),
"cameraId": cameraId
}.clearNulls();