Cluster.fromJson constructor

Cluster.fromJson(
  1. Map json_
)

Implementation

Cluster.fromJson(core.Map json_)
    : this(
        centroidId: json_.containsKey('centroidId')
            ? json_['centroidId'] as core.String
            : null,
        count:
            json_.containsKey('count') ? json_['count'] as core.String : null,
        featureValues: json_.containsKey('featureValues')
            ? (json_['featureValues'] as core.List)
                .map((value) => FeatureValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );