GoogleCloudAiplatformV1Model.fromJson constructor

GoogleCloudAiplatformV1Model.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1Model.fromJson(core.Map json_)
    : this(
        artifactUri: json_.containsKey('artifactUri')
            ? json_['artifactUri'] as core.String
            : null,
        baseModelSource: json_.containsKey('baseModelSource')
            ? GoogleCloudAiplatformV1ModelBaseModelSource.fromJson(
                json_['baseModelSource']
                    as core.Map<core.String, core.dynamic>)
            : null,
        containerSpec: json_.containsKey('containerSpec')
            ? GoogleCloudAiplatformV1ModelContainerSpec.fromJson(
                json_['containerSpec'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        dataStats: json_.containsKey('dataStats')
            ? GoogleCloudAiplatformV1ModelDataStats.fromJson(
                json_['dataStats'] as core.Map<core.String, core.dynamic>)
            : null,
        deployedModels: json_.containsKey('deployedModels')
            ? (json_['deployedModels'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1DeployedModelRef.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,
        explanationSpec: json_.containsKey('explanationSpec')
            ? GoogleCloudAiplatformV1ExplanationSpec.fromJson(
                json_['explanationSpec']
                    as core.Map<core.String, core.dynamic>)
            : 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,
        metadataArtifact: json_.containsKey('metadataArtifact')
            ? json_['metadataArtifact'] as core.String
            : null,
        metadataSchemaUri: json_.containsKey('metadataSchemaUri')
            ? json_['metadataSchemaUri'] as core.String
            : null,
        modelSourceInfo: json_.containsKey('modelSourceInfo')
            ? GoogleCloudAiplatformV1ModelSourceInfo.fromJson(
                json_['modelSourceInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        originalModelInfo: json_.containsKey('originalModelInfo')
            ? GoogleCloudAiplatformV1ModelOriginalModelInfo.fromJson(
                json_['originalModelInfo']
                    as core.Map<core.String, core.dynamic>)
            : null,
        pipelineJob: json_.containsKey('pipelineJob')
            ? json_['pipelineJob'] as core.String
            : null,
        predictSchemata: json_.containsKey('predictSchemata')
            ? GoogleCloudAiplatformV1PredictSchemata.fromJson(
                json_['predictSchemata']
                    as core.Map<core.String, core.dynamic>)
            : null,
        supportedDeploymentResourcesTypes:
            json_.containsKey('supportedDeploymentResourcesTypes')
                ? (json_['supportedDeploymentResourcesTypes'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        supportedExportFormats: json_.containsKey('supportedExportFormats')
            ? (json_['supportedExportFormats'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1ModelExportFormat.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        supportedInputStorageFormats:
            json_.containsKey('supportedInputStorageFormats')
                ? (json_['supportedInputStorageFormats'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        supportedOutputStorageFormats:
            json_.containsKey('supportedOutputStorageFormats')
                ? (json_['supportedOutputStorageFormats'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        trainingPipeline: json_.containsKey('trainingPipeline')
            ? json_['trainingPipeline'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        versionAliases: json_.containsKey('versionAliases')
            ? (json_['versionAliases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        versionCreateTime: json_.containsKey('versionCreateTime')
            ? json_['versionCreateTime'] as core.String
            : null,
        versionDescription: json_.containsKey('versionDescription')
            ? json_['versionDescription'] as core.String
            : null,
        versionId: json_.containsKey('versionId')
            ? json_['versionId'] as core.String
            : null,
        versionUpdateTime: json_.containsKey('versionUpdateTime')
            ? json_['versionUpdateTime'] as core.String
            : null,
      );