GoogleCloudMlV1TrainingInput.fromJson constructor

GoogleCloudMlV1TrainingInput.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1TrainingInput.fromJson(core.Map json_)
    : this(
        args: json_.containsKey('args')
            ? (json_['args'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        enableWebAccess: json_.containsKey('enableWebAccess')
            ? json_['enableWebAccess'] as core.bool
            : null,
        encryptionConfig: json_.containsKey('encryptionConfig')
            ? GoogleCloudMlV1EncryptionConfig.fromJson(
                json_['encryptionConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        evaluatorConfig: json_.containsKey('evaluatorConfig')
            ? GoogleCloudMlV1ReplicaConfig.fromJson(json_['evaluatorConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        evaluatorCount: json_.containsKey('evaluatorCount')
            ? json_['evaluatorCount'] as core.String
            : null,
        evaluatorType: json_.containsKey('evaluatorType')
            ? json_['evaluatorType'] as core.String
            : null,
        hyperparameters: json_.containsKey('hyperparameters')
            ? GoogleCloudMlV1HyperparameterSpec.fromJson(
                json_['hyperparameters']
                    as core.Map<core.String, core.dynamic>)
            : null,
        jobDir: json_.containsKey('jobDir')
            ? json_['jobDir'] as core.String
            : null,
        masterConfig: json_.containsKey('masterConfig')
            ? GoogleCloudMlV1ReplicaConfig.fromJson(
                json_['masterConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        masterType: json_.containsKey('masterType')
            ? json_['masterType'] as core.String
            : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        packageUris: json_.containsKey('packageUris')
            ? (json_['packageUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        parameterServerConfig: json_.containsKey('parameterServerConfig')
            ? GoogleCloudMlV1ReplicaConfig.fromJson(
                json_['parameterServerConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        parameterServerCount: json_.containsKey('parameterServerCount')
            ? json_['parameterServerCount'] as core.String
            : null,
        parameterServerType: json_.containsKey('parameterServerType')
            ? json_['parameterServerType'] as core.String
            : null,
        pythonModule: json_.containsKey('pythonModule')
            ? json_['pythonModule'] as core.String
            : null,
        pythonVersion: json_.containsKey('pythonVersion')
            ? json_['pythonVersion'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        runtimeVersion: json_.containsKey('runtimeVersion')
            ? json_['runtimeVersion'] as core.String
            : null,
        scaleTier: json_.containsKey('scaleTier')
            ? json_['scaleTier'] as core.String
            : null,
        scheduling: json_.containsKey('scheduling')
            ? GoogleCloudMlV1Scheduling.fromJson(
                json_['scheduling'] as core.Map<core.String, core.dynamic>)
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        useChiefInTfConfig: json_.containsKey('useChiefInTfConfig')
            ? json_['useChiefInTfConfig'] as core.bool
            : null,
        workerConfig: json_.containsKey('workerConfig')
            ? GoogleCloudMlV1ReplicaConfig.fromJson(
                json_['workerConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        workerCount: json_.containsKey('workerCount')
            ? json_['workerCount'] as core.String
            : null,
        workerType: json_.containsKey('workerType')
            ? json_['workerType'] as core.String
            : null,
      );