fromJson static method

DocumentReaderGraphicField? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.sourceType = jsonObject["sourceType"];
  result.fieldType = jsonObject["fieldType"];
  result.lightType = jsonObject["lightType"];
  result.pageIndex = jsonObject["pageIndex"];
  result.fieldName = jsonObject["fieldName"];
  result.lightName = jsonObject["lightName"];
  result.value = jsonObject["value"];
  result.fieldRect = DocReaderFieldRect.fromJson(jsonObject["fieldRect"]);

  return result;
}