GoogleCloudMlV1HyperparameterSpec.fromJson constructor

GoogleCloudMlV1HyperparameterSpec.fromJson(
  1. Map json_
)

Implementation

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