fromJson static method

DocumentReaderAuthenticityCheck? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.type = jsonObject["type"];
  result.status = jsonObject["status"];
  result.typeName = jsonObject["typeName"];
  result.pageIndex = jsonObject["pageIndex"];
  if (jsonObject["elements"] != null)
    for (var item in jsonObject["elements"])
      result.elements.add(DocumentReaderAuthenticityElement.fromJson(item));

  return result;
}