PrincipalComponentInfo.fromJson constructor

PrincipalComponentInfo.fromJson(
  1. Map json_
)

Implementation

PrincipalComponentInfo.fromJson(core.Map json_)
    : this(
        cumulativeExplainedVarianceRatio:
            json_.containsKey('cumulativeExplainedVarianceRatio')
                ? (json_['cumulativeExplainedVarianceRatio'] as core.num)
                    .toDouble()
                : null,
        explainedVariance: json_.containsKey('explainedVariance')
            ? (json_['explainedVariance'] as core.num).toDouble()
            : null,
        explainedVarianceRatio: json_.containsKey('explainedVarianceRatio')
            ? (json_['explainedVarianceRatio'] as core.num).toDouble()
            : null,
        principalComponentId: json_.containsKey('principalComponentId')
            ? json_['principalComponentId'] as core.String
            : null,
      );