GooglePrivacyDlpV2RedactImageRequest.fromJson constructor

GooglePrivacyDlpV2RedactImageRequest.fromJson(
  1. Map json_
)

Implementation

GooglePrivacyDlpV2RedactImageRequest.fromJson(core.Map json_)
    : this(
        byteItem: json_.containsKey('byteItem')
            ? GooglePrivacyDlpV2ByteContentItem.fromJson(
                json_['byteItem'] as core.Map<core.String, core.dynamic>)
            : null,
        imageRedactionConfigs: json_.containsKey('imageRedactionConfigs')
            ? (json_['imageRedactionConfigs'] as core.List)
                .map((value) =>
                    GooglePrivacyDlpV2ImageRedactionConfig.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        includeFindings: json_.containsKey('includeFindings')
            ? json_['includeFindings'] as core.bool
            : null,
        inspectConfig: json_.containsKey('inspectConfig')
            ? GooglePrivacyDlpV2InspectConfig.fromJson(
                json_['inspectConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        locationId: json_.containsKey('locationId')
            ? json_['locationId'] as core.String
            : null,
      );