toJson method
Converts the current Wallet instance into a JSON object. Note that the private key is not serialized for safety reasons.
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'hex_address': hex.encode(address),
'bech32_address': bech32Address,
'public_key': hex.encode(publicKey),
'network_info': networkInfo.toJson(),
};