OrgPolicyConstraintCustom.fromJson constructor

OrgPolicyConstraintCustom.fromJson(
  1. Map json_
)

Implementation

OrgPolicyConstraintCustom.fromJson(core.Map json_)
  : this(
      customConstraint:
          json_.containsKey('customConstraint')
              ? GoogleCloudSecuritypostureV1CustomConstraint.fromJson(
                json_['customConstraint']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      policyRules:
          (json_['policyRules'] as core.List?)
              ?.map(
                (value) => GoogleCloudSecuritypostureV1PolicyRule.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
    );