GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo.fromJson constructor

GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo.fromJson(
    core.Map json_)
    : this(
        distinctRatio: json_.containsKey('distinctRatio')
            ? (json_['distinctRatio'] as core.num).toDouble()
            : null,
        doubleProfile: json_.containsKey('doubleProfile')
            ? GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoDoubleFieldInfo
                .fromJson(json_['doubleProfile']
                    as core.Map<core.String, core.dynamic>)
            : null,
        integerProfile: json_.containsKey('integerProfile')
            ? GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldInfo
                .fromJson(json_['integerProfile']
                    as core.Map<core.String, core.dynamic>)
            : null,
        nullRatio: json_.containsKey('nullRatio')
            ? (json_['nullRatio'] as core.num).toDouble()
            : null,
        stringProfile: json_.containsKey('stringProfile')
            ? GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo
                .fromJson(json_['stringProfile']
                    as core.Map<core.String, core.dynamic>)
            : null,
        topNValues: json_.containsKey('topNValues')
            ? (json_['topNValues'] as core.List)
                .map((value) =>
                    GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoTopNValue
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );