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,
      );