toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final algorithmHyperParameters = this.algorithmHyperParameters;
  final autoMLConfig = this.autoMLConfig;
  final eventValueThreshold = this.eventValueThreshold;
  final featureTransformationParameters =
      this.featureTransformationParameters;
  final hpoConfig = this.hpoConfig;
  return {
    if (algorithmHyperParameters != null)
      'algorithmHyperParameters': algorithmHyperParameters,
    if (autoMLConfig != null) 'autoMLConfig': autoMLConfig,
    if (eventValueThreshold != null)
      'eventValueThreshold': eventValueThreshold,
    if (featureTransformationParameters != null)
      'featureTransformationParameters': featureTransformationParameters,
    if (hpoConfig != null) 'hpoConfig': hpoConfig,
  };
}