fromJson static method
Implementation
@visibleForTesting
static DetectFacesException? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = DetectFacesException._privateConstructor();
  result._code = DetectFacesErrorCode.getByValue(jsonObject["code"])!;
  result._message = jsonObject["message"] ?? "";
  result._underlyingError =
      DetectFacesBackendException.fromJson(jsonObject["underlyingError"]);
  return result;
}