GoogleCloudAssuredworkloadsV1Violation.fromJson constructor

GoogleCloudAssuredworkloadsV1Violation.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAssuredworkloadsV1Violation.fromJson(core.Map json_)
    : this(
        acknowledged: json_.containsKey('acknowledged')
            ? json_['acknowledged'] as core.bool
            : null,
        acknowledgementTime: json_.containsKey('acknowledgementTime')
            ? json_['acknowledgementTime'] as core.String
            : null,
        associatedOrgPolicyViolationId:
            json_.containsKey('associatedOrgPolicyViolationId')
                ? json_['associatedOrgPolicyViolationId'] as core.String
                : null,
        auditLogLink: json_.containsKey('auditLogLink')
            ? json_['auditLogLink'] as core.String
            : null,
        beginTime: json_.containsKey('beginTime')
            ? json_['beginTime'] as core.String
            : null,
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        exceptionAuditLogLink: json_.containsKey('exceptionAuditLogLink')
            ? json_['exceptionAuditLogLink'] as core.String
            : null,
        exceptionContexts: json_.containsKey('exceptionContexts')
            ? (json_['exceptionContexts'] as core.List)
                .map((value) =>
                    GoogleCloudAssuredworkloadsV1ViolationExceptionContext
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nonCompliantOrgPolicy: json_.containsKey('nonCompliantOrgPolicy')
            ? json_['nonCompliantOrgPolicy'] as core.String
            : null,
        orgPolicyConstraint: json_.containsKey('orgPolicyConstraint')
            ? json_['orgPolicyConstraint'] as core.String
            : null,
        parentProjectNumber: json_.containsKey('parentProjectNumber')
            ? json_['parentProjectNumber'] as core.String
            : null,
        remediation: json_.containsKey('remediation')
            ? GoogleCloudAssuredworkloadsV1ViolationRemediation.fromJson(
                json_['remediation'] as core.Map<core.String, core.dynamic>)
            : null,
        resolveTime: json_.containsKey('resolveTime')
            ? json_['resolveTime'] as core.String
            : null,
        resourceName: json_.containsKey('resourceName')
            ? json_['resourceName'] as core.String
            : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        violationType: json_.containsKey('violationType')
            ? json_['violationType'] as core.String
            : null,
      );