toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

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