GoogleCloudKmsInventoryV1ProtectedResource.fromJson constructor

GoogleCloudKmsInventoryV1ProtectedResource.fromJson(
  1. Map json_
)

Implementation

GoogleCloudKmsInventoryV1ProtectedResource.fromJson(core.Map json_)
    : this(
        cloudProduct: json_.containsKey('cloudProduct')
            ? json_['cloudProduct'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        cryptoKeyVersion: json_.containsKey('cryptoKeyVersion')
            ? json_['cryptoKeyVersion'] as core.String
            : null,
        cryptoKeyVersions: json_.containsKey('cryptoKeyVersions')
            ? (json_['cryptoKeyVersions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        project: json_.containsKey('project')
            ? json_['project'] as core.String
            : null,
        projectId: json_.containsKey('projectId')
            ? json_['projectId'] as core.String
            : null,
        resourceType: json_.containsKey('resourceType')
            ? json_['resourceType'] as core.String
            : null,
      );