GoogleCloudAiplatformV1CustomJobSpec.fromJson constructor

GoogleCloudAiplatformV1CustomJobSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1CustomJobSpec.fromJson(core.Map json_)
    : this(
        baseOutputDirectory: json_.containsKey('baseOutputDirectory')
            ? GoogleCloudAiplatformV1GcsDestination.fromJson(
                json_['baseOutputDirectory']
                    as core.Map<core.String, core.dynamic>)
            : null,
        enableDashboardAccess: json_.containsKey('enableDashboardAccess')
            ? json_['enableDashboardAccess'] as core.bool
            : null,
        enableWebAccess: json_.containsKey('enableWebAccess')
            ? json_['enableWebAccess'] as core.bool
            : null,
        experiment: json_.containsKey('experiment')
            ? json_['experiment'] as core.String
            : null,
        experimentRun: json_.containsKey('experimentRun')
            ? json_['experimentRun'] as core.String
            : null,
        models: json_.containsKey('models')
            ? (json_['models'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        persistentResourceId: json_.containsKey('persistentResourceId')
            ? json_['persistentResourceId'] as core.String
            : null,
        protectedArtifactLocationId:
            json_.containsKey('protectedArtifactLocationId')
                ? json_['protectedArtifactLocationId'] as core.String
                : null,
        reservedIpRanges: json_.containsKey('reservedIpRanges')
            ? (json_['reservedIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        scheduling: json_.containsKey('scheduling')
            ? GoogleCloudAiplatformV1Scheduling.fromJson(
                json_['scheduling'] as core.Map<core.String, core.dynamic>)
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        tensorboard: json_.containsKey('tensorboard')
            ? json_['tensorboard'] as core.String
            : null,
        workerPoolSpecs: json_.containsKey('workerPoolSpecs')
            ? (json_['workerPoolSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1WorkerPoolSpec.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );