GoogleCloudAiplatformV1NotebookRuntimeTemplate.fromJson constructor

GoogleCloudAiplatformV1NotebookRuntimeTemplate.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1NotebookRuntimeTemplate.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        dataPersistentDiskSpec: json_.containsKey('dataPersistentDiskSpec')
            ? GoogleCloudAiplatformV1PersistentDiskSpec.fromJson(
                json_['dataPersistentDiskSpec']
                    as core.Map<core.String, core.dynamic>)
            : 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,
        eucConfig: json_.containsKey('eucConfig')
            ? GoogleCloudAiplatformV1NotebookEucConfig.fromJson(
                json_['eucConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        idleShutdownConfig: json_.containsKey('idleShutdownConfig')
            ? GoogleCloudAiplatformV1NotebookIdleShutdownConfig.fromJson(
                json_['idleShutdownConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        isDefault: json_.containsKey('isDefault')
            ? json_['isDefault'] as core.bool
            : 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,
        machineSpec: json_.containsKey('machineSpec')
            ? GoogleCloudAiplatformV1MachineSpec.fromJson(
                json_['machineSpec'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        networkSpec: json_.containsKey('networkSpec')
            ? GoogleCloudAiplatformV1NetworkSpec.fromJson(
                json_['networkSpec'] as core.Map<core.String, core.dynamic>)
            : null,
        networkTags: json_.containsKey('networkTags')
            ? (json_['networkTags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        notebookRuntimeType: json_.containsKey('notebookRuntimeType')
            ? json_['notebookRuntimeType'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        shieldedVmConfig: json_.containsKey('shieldedVmConfig')
            ? GoogleCloudAiplatformV1ShieldedVmConfig.fromJson(
                json_['shieldedVmConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );