fromJson static method

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

Implementation

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

  result._image = FaceCaptureImage.fromJson(jsonObject["image"]);
  result._error = FaceCaptureException.fromJson(jsonObject["error"]);

  return result;
}