fromJson static method

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

Implementation

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

  result._image = _bytesFromBase64(jsonObject["image"])!;
  result._imageType = ImageType.getByValue(jsonObject["imageType"])!;
  result._tag = jsonObject["tag"];

  return result;
}