toJson method
Converts the data to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"port_id": portId,
"channel_id": channelId,
"counterparty_channel_state": counterpartyChannelState?.value,
"counterparty_upgrade_sequence": counterpartyUpgradeSequence?.toString(),
"proof_channel": BytesUtils.tryToHexString(proofChannel),
"proof_height": proofHeight.toJson(),
"signer": signer
};
}