toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (activationFn != null) 'activationFn': activationFn!,
if (batchSize != null) 'batchSize': batchSize!,
if (boosterType != null) 'boosterType': boosterType!,
if (colsampleBylevel != null) 'colsampleBylevel': colsampleBylevel!,
if (colsampleBynode != null) 'colsampleBynode': colsampleBynode!,
if (colsampleBytree != null) 'colsampleBytree': colsampleBytree!,
if (dartNormalizeType != null) 'dartNormalizeType': dartNormalizeType!,
if (dropout != null) 'dropout': dropout!,
if (hiddenUnits != null) 'hiddenUnits': hiddenUnits!,
if (l1Reg != null) 'l1Reg': l1Reg!,
if (l2Reg != null) 'l2Reg': l2Reg!,
if (learnRate != null) 'learnRate': learnRate!,
if (maxTreeDepth != null) 'maxTreeDepth': maxTreeDepth!,
if (minSplitLoss != null) 'minSplitLoss': minSplitLoss!,
if (minTreeChildWeight != null)
'minTreeChildWeight': minTreeChildWeight!,
if (numClusters != null) 'numClusters': numClusters!,
if (numFactors != null) 'numFactors': numFactors!,
if (numParallelTree != null) 'numParallelTree': numParallelTree!,
if (optimizer != null) 'optimizer': optimizer!,
if (subsample != null) 'subsample': subsample!,
if (treeMethod != null) 'treeMethod': treeMethod!,
if (walsAlpha != null) 'walsAlpha': walsAlpha!,
};