GoogleCloudDataplexV1DataQualityRule.fromJson constructor

GoogleCloudDataplexV1DataQualityRule.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDataplexV1DataQualityRule.fromJson(core.Map json_)
    : this(
        column: json_['column'] as core.String?,
        description: json_['description'] as core.String?,
        dimension: json_['dimension'] as core.String?,
        ignoreNull: json_['ignoreNull'] as core.bool?,
        name: json_['name'] as core.String?,
        nonNullExpectation: json_.containsKey('nonNullExpectation')
            ? GoogleCloudDataplexV1DataQualityRuleNonNullExpectation.fromJson(
                json_['nonNullExpectation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        rangeExpectation: json_.containsKey('rangeExpectation')
            ? GoogleCloudDataplexV1DataQualityRuleRangeExpectation.fromJson(
                json_['rangeExpectation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        regexExpectation: json_.containsKey('regexExpectation')
            ? GoogleCloudDataplexV1DataQualityRuleRegexExpectation.fromJson(
                json_['regexExpectation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        rowConditionExpectation: json_.containsKey('rowConditionExpectation')
            ? GoogleCloudDataplexV1DataQualityRuleRowConditionExpectation
                .fromJson(json_['rowConditionExpectation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        setExpectation: json_.containsKey('setExpectation')
            ? GoogleCloudDataplexV1DataQualityRuleSetExpectation.fromJson(
                json_['setExpectation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        sqlAssertion: json_.containsKey('sqlAssertion')
            ? GoogleCloudDataplexV1DataQualityRuleSqlAssertion.fromJson(
                json_['sqlAssertion'] as core.Map<core.String, core.dynamic>)
            : null,
        statisticRangeExpectation: json_
                .containsKey('statisticRangeExpectation')
            ? GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation
                .fromJson(json_['statisticRangeExpectation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        suspended: json_['suspended'] as core.bool?,
        tableConditionExpectation: json_
                .containsKey('tableConditionExpectation')
            ? GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation
                .fromJson(json_['tableConditionExpectation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        threshold: (json_['threshold'] as core.num?)?.toDouble(),
        uniquenessExpectation: json_.containsKey('uniquenessExpectation')
            ? GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation
                .fromJson(json_['uniquenessExpectation']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );