GoogleCloudSecuritycenterV1ResourceValueConfig.fromJson constructor

GoogleCloudSecuritycenterV1ResourceValueConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudSecuritycenterV1ResourceValueConfig.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        resourceLabelsSelector: json_.containsKey('resourceLabelsSelector')
            ? (json_['resourceLabelsSelector']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
        resourceValue: json_.containsKey('resourceValue')
            ? json_['resourceValue'] as core.String
            : null,
        scope:
            json_.containsKey('scope') ? json_['scope'] as core.String : null,
        sensitiveDataProtectionMapping:
            json_.containsKey('sensitiveDataProtectionMapping')
                ? GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping
                    .fromJson(json_['sensitiveDataProtectionMapping']
                        as core.Map<core.String, core.dynamic>)
                : null,
        tagValues: json_.containsKey('tagValues')
            ? (json_['tagValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );