CVSSv3.fromJson constructor

CVSSv3.fromJson(
  1. Map json_
)

Implementation

CVSSv3.fromJson(core.Map json_)
    : this(
        attackComplexity: json_.containsKey('attackComplexity')
            ? json_['attackComplexity'] as core.String
            : null,
        attackVector: json_.containsKey('attackVector')
            ? json_['attackVector'] as core.String
            : null,
        availabilityImpact: json_.containsKey('availabilityImpact')
            ? json_['availabilityImpact'] as core.String
            : null,
        baseScore: json_.containsKey('baseScore')
            ? (json_['baseScore'] as core.num).toDouble()
            : null,
        confidentialityImpact: json_.containsKey('confidentialityImpact')
            ? json_['confidentialityImpact'] as core.String
            : null,
        exploitabilityScore: json_.containsKey('exploitabilityScore')
            ? (json_['exploitabilityScore'] as core.num).toDouble()
            : null,
        impactScore: json_.containsKey('impactScore')
            ? (json_['impactScore'] as core.num).toDouble()
            : null,
        integrityImpact: json_.containsKey('integrityImpact')
            ? json_['integrityImpact'] as core.String
            : null,
        privilegesRequired: json_.containsKey('privilegesRequired')
            ? json_['privilegesRequired'] as core.String
            : null,
        scope:
            json_.containsKey('scope') ? json_['scope'] as core.String : null,
        userInteraction: json_.containsKey('userInteraction')
            ? json_['userInteraction'] as core.String
            : null,
      );