toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (additions != null) {
    _json["additions"] = additions.map((value) => (value).toJson()).toList();
  }
  if (checksum != null) {
    _json["checksum"] = (checksum).toJson();
  }
  if (newClientState != null) {
    _json["newClientState"] = newClientState;
  }
  if (platformType != null) {
    _json["platformType"] = platformType;
  }
  if (removals != null) {
    _json["removals"] = removals.map((value) => (value).toJson()).toList();
  }
  if (responseType != null) {
    _json["responseType"] = responseType;
  }
  if (threatEntryType != null) {
    _json["threatEntryType"] = threatEntryType;
  }
  if (threatType != null) {
    _json["threatType"] = threatType;
  }
  return _json;
}