toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cumulativeExplainedVarianceRatio != null)
        'cumulativeExplainedVarianceRatio': cumulativeExplainedVarianceRatio!,
      if (explainedVariance != null) 'explainedVariance': explainedVariance!,
      if (explainedVarianceRatio != null)
        'explainedVarianceRatio': explainedVarianceRatio!,
      if (principalComponentId != null)
        'principalComponentId': principalComponentId!,
    };