ContactInfo.fromJson constructor

ContactInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ContactInfo.fromJson(Map<String, dynamic> json) {
  return ContactInfo(
      pubkey: SolAddress.unchecked(json["pubkey"]),
      gossip: json["gossip"],
      tpu: json["tpu"],
      rpc: json["rpc"],
      version: json["version"]);
}