fromJson static method

ImageInputData? fromJson(
  1. dynamic jsonObject
)

Implementation

static ImageInputData? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new ImageInputData();

  result.pageIndex = jsonObject["pageIndex"];
  result.light = jsonObject["light"];
  result.type = jsonObject["type"];
  result.width = jsonObject["width"];
  result.height = jsonObject["height"];
  result.bitmap = jsonObject["bitmap"];
  result.imgBytes = jsonObject["imgBytes"];

  return result;
}