toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (algorithm != null) 'algorithm': algorithm!,
      if (convexAutomatedStoppingSpec != null)
        'convexAutomatedStoppingSpec': convexAutomatedStoppingSpec!,
      if (decayCurveStoppingSpec != null)
        'decayCurveStoppingSpec': decayCurveStoppingSpec!,
      if (measurementSelectionType != null)
        'measurementSelectionType': measurementSelectionType!,
      if (medianAutomatedStoppingSpec != null)
        'medianAutomatedStoppingSpec': medianAutomatedStoppingSpec!,
      if (metrics != null) 'metrics': metrics!,
      if (observationNoise != null) 'observationNoise': observationNoise!,
      if (parameters != null) 'parameters': parameters!,
      if (studyStoppingConfig != null)
        'studyStoppingConfig': studyStoppingConfig!,
    };