toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (platformTypes != null) 'platformTypes': platformTypes!,
      if (threatEntries != null) 'threatEntries': threatEntries!,
      if (threatEntryTypes != null) 'threatEntryTypes': threatEntryTypes!,
      if (threatTypes != null) 'threatTypes': threatTypes!,
    };