ThreatSource.fromJson constructor

ThreatSource.fromJson(
  1. Map _json
)

Implementation

ThreatSource.fromJson(core.Map _json) {
  if (_json.containsKey("referrer")) {
    referrer = _json["referrer"];
  }
  if (_json.containsKey("remoteIp")) {
    remoteIp = _json["remoteIp"];
  }
  if (_json.containsKey("type")) {
    type = _json["type"];
  }
  if (_json.containsKey("url")) {
    url = _json["url"];
  }
}