GooglePrivacyDlpV2InfoTypeDescription.fromJson constructor

GooglePrivacyDlpV2InfoTypeDescription.fromJson(
  1. Map json_
)

Implementation

GooglePrivacyDlpV2InfoTypeDescription.fromJson(core.Map json_)
    : this(
        categories: json_.containsKey('categories')
            ? (json_['categories'] as core.List)
                .map((value) => GooglePrivacyDlpV2InfoTypeCategory.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sensitivityScore: json_.containsKey('sensitivityScore')
            ? GooglePrivacyDlpV2SensitivityScore.fromJson(
                json_['sensitivityScore']
                    as core.Map<core.String, core.dynamic>)
            : null,
        supportedBy: json_.containsKey('supportedBy')
            ? (json_['supportedBy'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        versions: json_.containsKey('versions')
            ? (json_['versions'] as core.List)
                .map((value) => GooglePrivacyDlpV2VersionDescription.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );