GooglePrivacyDlpV2InspectConfig.fromJson constructor

GooglePrivacyDlpV2InspectConfig.fromJson(
  1. Map json_
)

Implementation

GooglePrivacyDlpV2InspectConfig.fromJson(core.Map json_)
    : this(
        contentOptions: json_.containsKey('contentOptions')
            ? (json_['contentOptions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        customInfoTypes: json_.containsKey('customInfoTypes')
            ? (json_['customInfoTypes'] as core.List)
                .map((value) => GooglePrivacyDlpV2CustomInfoType.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        excludeInfoTypes: json_.containsKey('excludeInfoTypes')
            ? json_['excludeInfoTypes'] as core.bool
            : null,
        includeQuote: json_.containsKey('includeQuote')
            ? json_['includeQuote'] as core.bool
            : null,
        infoTypes: json_.containsKey('infoTypes')
            ? (json_['infoTypes'] as core.List)
                .map((value) => GooglePrivacyDlpV2InfoType.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        limits: json_.containsKey('limits')
            ? GooglePrivacyDlpV2FindingLimits.fromJson(
                json_['limits'] as core.Map<core.String, core.dynamic>)
            : null,
        minLikelihood: json_.containsKey('minLikelihood')
            ? json_['minLikelihood'] as core.String
            : null,
        minLikelihoodPerInfoType: json_
                .containsKey('minLikelihoodPerInfoType')
            ? (json_['minLikelihoodPerInfoType'] as core.List)
                .map((value) => GooglePrivacyDlpV2InfoTypeLikelihood.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ruleSet: json_.containsKey('ruleSet')
            ? (json_['ruleSet'] as core.List)
                .map((value) => GooglePrivacyDlpV2InspectionRuleSet.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );