ClusterInfo.fromJson constructor

ClusterInfo.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory ClusterInfo.fromJson(Map<String, dynamic> jsonSerialization) {
  return ClusterInfo(
    servers: (jsonSerialization['servers'] as List)
        .map(
          (e) => _i2.ClusterServerInfo.fromJson((e as Map<String, dynamic>)),
        )
        .toList(),
  );
}