fromJson static method

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

Implementation

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

  var result = MatchFacesImage(
    _bytesFromBase64(jsonObject["image"])!,
    ImageType.getByValue(jsonObject["imageType"])!,
    detectAll: jsonObject["detectAll"],
  );
  result._identifier = jsonObject["identifier"];
  return result;
}