ListUpdateResponse.fromJson constructor

ListUpdateResponse.fromJson(
  1. Map _json
)

Implementation

ListUpdateResponse.fromJson(core.Map _json) {
  if (_json.containsKey("additions")) {
    additions = (_json["additions"] as core.List)
        .map<ThreatEntrySet>((value) => new ThreatEntrySet.fromJson(value))
        .toList();
  }
  if (_json.containsKey("checksum")) {
    checksum = new Checksum.fromJson(_json["checksum"]);
  }
  if (_json.containsKey("newClientState")) {
    newClientState = _json["newClientState"];
  }
  if (_json.containsKey("platformType")) {
    platformType = _json["platformType"];
  }
  if (_json.containsKey("removals")) {
    removals = (_json["removals"] as core.List)
        .map<ThreatEntrySet>((value) => new ThreatEntrySet.fromJson(value))
        .toList();
  }
  if (_json.containsKey("responseType")) {
    responseType = _json["responseType"];
  }
  if (_json.containsKey("threatEntryType")) {
    threatEntryType = _json["threatEntryType"];
  }
  if (_json.containsKey("threatType")) {
    threatType = _json["threatType"];
  }
}