PeerInfo<H, N>.fromJson constructor
Implementation
factory PeerInfo.fromJson(Map<String, dynamic> json) {
return PeerInfo(
peerId: json['peerId'] as String,
roles: json['roles'] as String,
bestHash: json['bestHash'] as H,
bestNumber: json['bestNumber'] as N,
);
}