toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (body != null) 'body': body!,
      if (description != null) 'description': description!,
      if (finalUrl != null) 'finalUrl': finalUrl!,
      if (findingType != null) 'findingType': findingType!,
      if (form != null) 'form': form!,
      if (frameUrl != null) 'frameUrl': frameUrl!,
      if (fuzzedUrl != null) 'fuzzedUrl': fuzzedUrl!,
      if (httpMethod != null) 'httpMethod': httpMethod!,
      if (name != null) 'name': name!,
      if (outdatedLibrary != null) 'outdatedLibrary': outdatedLibrary!,
      if (reproductionUrl != null) 'reproductionUrl': reproductionUrl!,
      if (severity != null) 'severity': severity!,
      if (trackingId != null) 'trackingId': trackingId!,
      if (violatingResource != null) 'violatingResource': violatingResource!,
      if (vulnerableHeaders != null) 'vulnerableHeaders': vulnerableHeaders!,
      if (vulnerableParameters != null)
        'vulnerableParameters': vulnerableParameters!,
      if (xss != null) 'xss': xss!,
      if (xxe != null) 'xxe': xxe!,
    };