PhantomData.fromJson constructor
Implementation
factory PhantomData.fromJson(Map<String, dynamic> json) {
return PhantomData(
address: json['public_key'].toString(),
chainId: json['chain_id'].toString(),
self: (json['self'] != null)
? ConnectionMetadata.fromJson(json['self'])
: null,
peer: (json['peer'] != null)
? ConnectionMetadata.fromJson(json['peer'])
: null,
);
}