GooglePrivacyDlpV2TransformationSummary.fromJson constructor

GooglePrivacyDlpV2TransformationSummary.fromJson(
  1. Map json_
)

Implementation

GooglePrivacyDlpV2TransformationSummary.fromJson(core.Map json_)
    : this(
        field: json_.containsKey('field')
            ? GooglePrivacyDlpV2FieldId.fromJson(
                json_['field'] as core.Map<core.String, core.dynamic>)
            : null,
        fieldTransformations: json_.containsKey('fieldTransformations')
            ? (json_['fieldTransformations'] as core.List)
                .map((value) =>
                    GooglePrivacyDlpV2FieldTransformation.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        infoType: json_.containsKey('infoType')
            ? GooglePrivacyDlpV2InfoType.fromJson(
                json_['infoType'] as core.Map<core.String, core.dynamic>)
            : null,
        recordSuppress: json_.containsKey('recordSuppress')
            ? GooglePrivacyDlpV2RecordSuppression.fromJson(
                json_['recordSuppress']
                    as core.Map<core.String, core.dynamic>)
            : null,
        results: json_.containsKey('results')
            ? (json_['results'] as core.List)
                .map((value) => GooglePrivacyDlpV2SummaryResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        transformation: json_.containsKey('transformation')
            ? GooglePrivacyDlpV2PrimitiveTransformation.fromJson(
                json_['transformation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        transformedBytes: json_.containsKey('transformedBytes')
            ? json_['transformedBytes'] as core.String
            : null,
      );