toJson method
Converts the object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"xchain_bridge": xchainBridge.toJson(),
"public_key": publicKey,
"signature": signature,
"other_chain_source": otherChainSource,
"amount": amount.toString(),
"attestation_reward_account": attestationRewardAccount,
"attestation_signer_account": attestationSignerAccount,
"was_locking_chain_send": wasLockingChainSend ? 1 : 0,
"destination": destination,
"xchain_account_create_count": xChainAccountCreateCount,
"signature_reward": signatureReward.toString(),
...super.toJson()
};
}