GoogleCloudMlV1HyperparameterSpec.fromJson constructor

GoogleCloudMlV1HyperparameterSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1HyperparameterSpec.fromJson(core.Map json_)
    : this(
        algorithm: json_.containsKey('algorithm')
            ? json_['algorithm'] as core.String
            : null,
        enableTrialEarlyStopping:
            json_.containsKey('enableTrialEarlyStopping')
                ? json_['enableTrialEarlyStopping'] as core.bool
                : null,
        goal: json_.containsKey('goal') ? json_['goal'] as core.String : null,
        hyperparameterMetricTag: json_.containsKey('hyperparameterMetricTag')
            ? json_['hyperparameterMetricTag'] as core.String
            : null,
        maxFailedTrials: json_.containsKey('maxFailedTrials')
            ? json_['maxFailedTrials'] as core.int
            : null,
        maxParallelTrials: json_.containsKey('maxParallelTrials')
            ? json_['maxParallelTrials'] as core.int
            : null,
        maxTrials: json_.containsKey('maxTrials')
            ? json_['maxTrials'] as core.int
            : null,
        params: json_.containsKey('params')
            ? (json_['params'] as core.List)
                .map((value) => GoogleCloudMlV1ParameterSpec.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resumePreviousJobId: json_.containsKey('resumePreviousJobId')
            ? json_['resumePreviousJobId'] as core.String
            : null,
      );