GooglePrivacyDlpV2CloudStorageOptions.fromJson constructor

GooglePrivacyDlpV2CloudStorageOptions.fromJson(
  1. Map json_
)

Implementation

GooglePrivacyDlpV2CloudStorageOptions.fromJson(core.Map json_)
    : this(
        bytesLimitPerFile: json_.containsKey('bytesLimitPerFile')
            ? json_['bytesLimitPerFile'] as core.String
            : null,
        bytesLimitPerFilePercent:
            json_.containsKey('bytesLimitPerFilePercent')
                ? json_['bytesLimitPerFilePercent'] as core.int
                : null,
        fileSet: json_.containsKey('fileSet')
            ? GooglePrivacyDlpV2FileSet.fromJson(
                json_['fileSet'] as core.Map<core.String, core.dynamic>)
            : null,
        fileTypes: json_.containsKey('fileTypes')
            ? (json_['fileTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        filesLimitPercent: json_.containsKey('filesLimitPercent')
            ? json_['filesLimitPercent'] as core.int
            : null,
        sampleMethod: json_.containsKey('sampleMethod')
            ? json_['sampleMethod'] as core.String
            : null,
      );