fromJson static method

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

Implementation

@visibleForTesting
static FaceCaptureImage? fromJson(jsonObject) {
  if (jsonObject == null) return null;

  return FaceCaptureImage(
    _bytesFromBase64(jsonObject["image"])!,
    ImageType.getByValue(jsonObject["imageType"])!,
    tag: jsonObject["tag"],
  );
}