Cluster.fromJson constructor

Cluster.fromJson(
  1. Map json_
)

Implementation

Cluster.fromJson(core.Map json_)
    : this(
        nodes: json_.containsKey('nodes')
            ? (json_['nodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        witnessServer: json_.containsKey('witnessServer')
            ? json_['witnessServer'] as core.String
            : null,
      );