GoogleCloudAiplatformV1ModelDeploymentMonitoringJob.fromJson constructor

GoogleCloudAiplatformV1ModelDeploymentMonitoringJob.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1ModelDeploymentMonitoringJob.fromJson(core.Map json_)
    : this(
        analysisInstanceSchemaUri:
            json_.containsKey('analysisInstanceSchemaUri')
                ? json_['analysisInstanceSchemaUri'] as core.String
                : null,
        bigqueryTables: json_.containsKey('bigqueryTables')
            ? (json_['bigqueryTables'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        enableMonitoringPipelineLogs:
            json_.containsKey('enableMonitoringPipelineLogs')
                ? json_['enableMonitoringPipelineLogs'] as core.bool
                : null,
        encryptionSpec: json_.containsKey('encryptionSpec')
            ? GoogleCloudAiplatformV1EncryptionSpec.fromJson(
                json_['encryptionSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        endpoint: json_.containsKey('endpoint')
            ? json_['endpoint'] as core.String
            : null,
        error: json_.containsKey('error')
            ? GoogleRpcStatus.fromJson(
                json_['error'] 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,
        latestMonitoringPipelineMetadata: json_
                .containsKey('latestMonitoringPipelineMetadata')
            ? GoogleCloudAiplatformV1ModelDeploymentMonitoringJobLatestMonitoringPipelineMetadata
                .fromJson(json_['latestMonitoringPipelineMetadata']
                    as core.Map<core.String, core.dynamic>)
            : null,
        logTtl: json_.containsKey('logTtl')
            ? json_['logTtl'] as core.String
            : null,
        loggingSamplingStrategy: json_.containsKey('loggingSamplingStrategy')
            ? GoogleCloudAiplatformV1SamplingStrategy.fromJson(
                json_['loggingSamplingStrategy']
                    as core.Map<core.String, core.dynamic>)
            : null,
        modelDeploymentMonitoringObjectiveConfigs: json_
                .containsKey('modelDeploymentMonitoringObjectiveConfigs')
            ? (json_['modelDeploymentMonitoringObjectiveConfigs']
                    as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1ModelDeploymentMonitoringObjectiveConfig
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        modelDeploymentMonitoringScheduleConfig: json_
                .containsKey('modelDeploymentMonitoringScheduleConfig')
            ? GoogleCloudAiplatformV1ModelDeploymentMonitoringScheduleConfig
                .fromJson(json_['modelDeploymentMonitoringScheduleConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        modelMonitoringAlertConfig:
            json_.containsKey('modelMonitoringAlertConfig')
                ? GoogleCloudAiplatformV1ModelMonitoringAlertConfig.fromJson(
                    json_['modelMonitoringAlertConfig']
                        as core.Map<core.String, core.dynamic>)
                : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nextScheduleTime: json_.containsKey('nextScheduleTime')
            ? json_['nextScheduleTime'] as core.String
            : null,
        predictInstanceSchemaUri:
            json_.containsKey('predictInstanceSchemaUri')
                ? json_['predictInstanceSchemaUri'] as core.String
                : null,
        samplePredictInstance: json_.containsKey('samplePredictInstance')
            ? json_['samplePredictInstance']
            : null,
        scheduleState: json_.containsKey('scheduleState')
            ? json_['scheduleState'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        statsAnomaliesBaseDirectory:
            json_.containsKey('statsAnomaliesBaseDirectory')
                ? GoogleCloudAiplatformV1GcsDestination.fromJson(
                    json_['statsAnomaliesBaseDirectory']
                        as core.Map<core.String, core.dynamic>)
                : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );