fromJson static method
- dynamic jsonObject
Implementation
@visibleForTesting
static ImageInputData? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = new ImageInputData(base64Decode(jsonObject["image"]));
result._pageIndex = jsonObject["pageIndex"];
result._light = Lights.getByValue(jsonObject["light"])!;
return result;
}