fromJson static method

  1. @visibleForTesting
FaceCaptureException? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static FaceCaptureException? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = FaceCaptureException._privateConstructor();

  result._code = FaceCaptureErrorCode.getByValue(jsonObject["code"])!;
  result._message = jsonObject["message"] ?? "";

  return result;
}