fromJson static method

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

Implementation

@visibleForTesting
static ImageInputData? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = ImageInputData(_bytesFromBase64(jsonObject["image"])!);

  result._pageIndex = jsonObject["pageIndex"];
  result._light = Lights.getByValue(jsonObject["light"])!;

  return result;
}