GooglePrivacyDlpV2CustomInfoType.fromJson constructor

GooglePrivacyDlpV2CustomInfoType.fromJson(
  1. Map json_
)

Implementation

GooglePrivacyDlpV2CustomInfoType.fromJson(core.Map json_)
  : this(
      detectionRules: (json_['detectionRules'] as core.List?)
          ?.map(
            (value) => GooglePrivacyDlpV2DetectionRule.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      dictionary: json_.containsKey('dictionary')
          ? GooglePrivacyDlpV2Dictionary.fromJson(
              json_['dictionary'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      exclusionType: json_['exclusionType'] as core.String?,
      infoType: json_.containsKey('infoType')
          ? GooglePrivacyDlpV2InfoType.fromJson(
              json_['infoType'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      likelihood: json_['likelihood'] as core.String?,
      regex: json_.containsKey('regex')
          ? GooglePrivacyDlpV2Regex.fromJson(
              json_['regex'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      sensitivityScore: json_.containsKey('sensitivityScore')
          ? GooglePrivacyDlpV2SensitivityScore.fromJson(
              json_['sensitivityScore']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      storedType: json_.containsKey('storedType')
          ? GooglePrivacyDlpV2StoredType.fromJson(
              json_['storedType'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      surrogateType: json_.containsKey('surrogateType')
          ? GooglePrivacyDlpV2SurrogateType.fromJson(
              json_['surrogateType'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );