GoogleCloudOrgpolicyV2PolicySpecPolicyRule.fromJson constructor

GoogleCloudOrgpolicyV2PolicySpecPolicyRule.fromJson(
  1. Map json_
)

Implementation

GoogleCloudOrgpolicyV2PolicySpecPolicyRule.fromJson(core.Map json_)
    : this(
        allowAll: json_.containsKey('allowAll')
            ? json_['allowAll'] as core.bool
            : null,
        condition: json_.containsKey('condition')
            ? GoogleTypeExpr.fromJson(
                json_['condition'] as core.Map<core.String, core.dynamic>)
            : null,
        denyAll: json_.containsKey('denyAll')
            ? json_['denyAll'] as core.bool
            : null,
        enforce: json_.containsKey('enforce')
            ? json_['enforce'] as core.bool
            : null,
        values: json_.containsKey('values')
            ? GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues.fromJson(
                json_['values'] as core.Map<core.String, core.dynamic>)
            : null,
      );