ComplianceOccurrence.fromJson constructor

ComplianceOccurrence.fromJson(
  1. Map json_
)

Implementation

ComplianceOccurrence.fromJson(core.Map json_)
    : this(
        nonComplianceReason: json_.containsKey('nonComplianceReason')
            ? json_['nonComplianceReason'] as core.String
            : null,
        nonCompliantFiles: json_.containsKey('nonCompliantFiles')
            ? (json_['nonCompliantFiles'] as core.List)
                .map((value) => NonCompliantFile.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        version: json_.containsKey('version')
            ? ComplianceVersion.fromJson(
                json_['version'] as core.Map<core.String, core.dynamic>)
            : null,
      );