GoogleCloudAiplatformV1Index.fromJson constructor

GoogleCloudAiplatformV1Index.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1Index.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        deployedIndexes: json_.containsKey('deployedIndexes')
            ? (json_['deployedIndexes'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1DeployedIndexRef.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,
        encryptionSpec: json_.containsKey('encryptionSpec')
            ? GoogleCloudAiplatformV1EncryptionSpec.fromJson(
                json_['encryptionSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        indexStats: json_.containsKey('indexStats')
            ? GoogleCloudAiplatformV1IndexStats.fromJson(
                json_['indexStats'] as core.Map<core.String, core.dynamic>)
            : null,
        indexUpdateMethod: json_.containsKey('indexUpdateMethod')
            ? json_['indexUpdateMethod'] as core.String
            : 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,
        metadata: json_.containsKey('metadata') ? json_['metadata'] : null,
        metadataSchemaUri: json_.containsKey('metadataSchemaUri')
            ? json_['metadataSchemaUri'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );