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 (constraints != null) {
    _json["constraints"] = (constraints).toJson();
  }
  if (platformType != null) {
    _json["platformType"] = platformType;
  }
  if (state != null) {
    _json["state"] = state;
  }
  if (threatEntryType != null) {
    _json["threatEntryType"] = threatEntryType;
  }
  if (threatType != null) {
    _json["threatType"] = threatType;
  }
  return _json;
}