VexAssessment.fromJson constructor

VexAssessment.fromJson(
  1. Map json_
)

Implementation

VexAssessment.fromJson(core.Map json_)
    : this(
        cve: json_.containsKey('cve') ? json_['cve'] as core.String : null,
        impacts: json_.containsKey('impacts')
            ? (json_['impacts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        justification: json_.containsKey('justification')
            ? Justification.fromJson(
                json_['justification'] as core.Map<core.String, core.dynamic>)
            : null,
        noteName: json_.containsKey('noteName')
            ? json_['noteName'] as core.String
            : null,
        relatedUris: json_.containsKey('relatedUris')
            ? (json_['relatedUris'] as core.List)
                .map((value) => RelatedUrl.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        remediations: json_.containsKey('remediations')
            ? (json_['remediations'] as core.List)
                .map((value) => Remediation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        vulnerabilityId: json_.containsKey('vulnerabilityId')
            ? json_['vulnerabilityId'] as core.String
            : null,
      );