GoogleCloudOrgpolicyV2Constraint.fromJson constructor

GoogleCloudOrgpolicyV2Constraint.fromJson(
  1. Map json_
)

Implementation

GoogleCloudOrgpolicyV2Constraint.fromJson(core.Map json_)
    : this(
        booleanConstraint: json_.containsKey('booleanConstraint')
            ? GoogleCloudOrgpolicyV2ConstraintBooleanConstraint.fromJson(
                json_['booleanConstraint']
                    as core.Map<core.String, core.dynamic>)
            : null,
        constraintDefault: json_.containsKey('constraintDefault')
            ? json_['constraintDefault'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        listConstraint: json_.containsKey('listConstraint')
            ? GoogleCloudOrgpolicyV2ConstraintListConstraint.fromJson(
                json_['listConstraint']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        supportsDryRun: json_.containsKey('supportsDryRun')
            ? json_['supportsDryRun'] as core.bool
            : null,
      );