fromJson static method

SecurityObject? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._fileReference = jsonObject["fileReference"];
  result._version = jsonObject["version"];
  result._objectType = jsonObject["objectType"];
  result._notifications = jsonObject["notifications"].cast<int>();
  for (var item in jsonObject["signerInfos"]) {
    result.signerInfos.addSafe(SignerInfo.fromJson(item));
  }

  return result;
}