toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (maxDurationNoProgress != null)
        'maxDurationNoProgress': maxDurationNoProgress!,
      if (maxNumTrials != null) 'maxNumTrials': maxNumTrials!,
      if (maxNumTrialsNoProgress != null)
        'maxNumTrialsNoProgress': maxNumTrialsNoProgress!,
      if (maximumRuntimeConstraint != null)
        'maximumRuntimeConstraint': maximumRuntimeConstraint!,
      if (minNumTrials != null) 'minNumTrials': minNumTrials!,
      if (minimumRuntimeConstraint != null)
        'minimumRuntimeConstraint': minimumRuntimeConstraint!,
      if (shouldStopAsap != null) 'shouldStopAsap': shouldStopAsap!,
    };