toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (algorithm != null) 'algorithm': algorithm!,
      if (enableTrialEarlyStopping != null)
        'enableTrialEarlyStopping': enableTrialEarlyStopping!,
      if (goal != null) 'goal': goal!,
      if (hyperparameterMetricTag != null)
        'hyperparameterMetricTag': hyperparameterMetricTag!,
      if (maxFailedTrials != null) 'maxFailedTrials': maxFailedTrials!,
      if (maxParallelTrials != null) 'maxParallelTrials': maxParallelTrials!,
      if (maxTrials != null) 'maxTrials': maxTrials!,
      if (params != null) 'params': params!,
      if (resumePreviousJobId != null)
        'resumePreviousJobId': resumePreviousJobId!,
    };