toJson method
Converts the object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"channel": channel,
"balance": balance?.toString(),
"amount": amount?.toString(),
"signature": signature,
"public_key": publicKey,
...super.toJson()
};
}