ComplianceNote.fromJson constructor

ComplianceNote.fromJson(
  1. Map json_
)

Implementation

ComplianceNote.fromJson(core.Map json_)
    : this(
        cisBenchmark: json_.containsKey('cisBenchmark')
            ? CisBenchmark.fromJson(
                json_['cisBenchmark'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        impact: json_.containsKey('impact')
            ? json_['impact'] as core.String
            : null,
        rationale: json_.containsKey('rationale')
            ? json_['rationale'] as core.String
            : null,
        remediation: json_.containsKey('remediation')
            ? json_['remediation'] as core.String
            : null,
        scanInstructions: json_.containsKey('scanInstructions')
            ? json_['scanInstructions'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        version: json_.containsKey('version')
            ? (json_['version'] as core.List)
                .map((value) => ComplianceVersion.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );