toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (attackComplexity != null) 'attackComplexity': attackComplexity!,
      if (attackVector != null) 'attackVector': attackVector!,
      if (availabilityImpact != null)
        'availabilityImpact': availabilityImpact!,
      if (baseScore != null) 'baseScore': baseScore!,
      if (confidentialityImpact != null)
        'confidentialityImpact': confidentialityImpact!,
      if (exploitabilityScore != null)
        'exploitabilityScore': exploitabilityScore!,
      if (impactScore != null) 'impactScore': impactScore!,
      if (integrityImpact != null) 'integrityImpact': integrityImpact!,
      if (privilegesRequired != null)
        'privilegesRequired': privilegesRequired!,
      if (scope != null) 'scope': scope!,
      if (userInteraction != null) 'userInteraction': userInteraction!,
    };