fromJson static method

SecurityObject? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.fileReference = jsonObject["fileReference"];
  result.version = jsonObject["version"];
  result.objectType = jsonObject["objectType"];
  if (jsonObject["notifications"] != null)
    for (var item in jsonObject["notifications"])
      result.notifications.add(item);
  if (jsonObject["signerInfos"] != null)
    for (var item in jsonObject["signerInfos"])
      result.signerInfos.add(SignerInfo.fromJson(item));

  return result;
}