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 (platformTypes != null) {
    _json["platformTypes"] = platformTypes;
  }
  if (threatEntries != null) {
    _json["threatEntries"] =
        threatEntries.map((value) => (value).toJson()).toList();
  }
  if (threatEntryTypes != null) {
    _json["threatEntryTypes"] = threatEntryTypes;
  }
  if (threatTypes != null) {
    _json["threatTypes"] = threatTypes;
  }
  return _json;
}