ClusterInfo.fromJson constructor

ClusterInfo.fromJson(
  1. Map json_
)

Implementation

ClusterInfo.fromJson(core.Map json_)
    : this(
        centroidId: json_.containsKey('centroidId')
            ? json_['centroidId'] as core.String
            : null,
        clusterRadius: json_.containsKey('clusterRadius')
            ? (json_['clusterRadius'] as core.num).toDouble()
            : null,
        clusterSize: json_.containsKey('clusterSize')
            ? json_['clusterSize'] as core.String
            : null,
      );