GooglePrivacyDlpV2InspectConfig.fromJson constructor

GooglePrivacyDlpV2InspectConfig.fromJson(
  1. Map json_
)

Implementation

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