Message constructor
Message({
- Message_Send? sendCoinsMessage,
- Message_Transfer? transferTokensMessage,
- Message_Delegate? stakeMessage,
- Message_Undelegate? unstakeMessage,
- Message_BeginRedelegate? restakeMessage,
- Message_WithdrawDelegationReward? withdrawStakeRewardMessage,
- Message_RawJSON? rawJsonMessage,
- Message_WasmTerraExecuteContractTransfer? wasmTerraExecuteContractTransferMessage,
- Message_WasmTerraExecuteContractSend? wasmTerraExecuteContractSendMessage,
- Message_THORChainSend? thorchainSendMessage,
- Message_WasmTerraExecuteContractGeneric? wasmTerraExecuteContractGeneric,
- Message_WasmExecuteContractTransfer? wasmExecuteContractTransferMessage,
- Message_WasmExecuteContractSend? wasmExecuteContractSendMessage,
- Message_WasmExecuteContractGeneric? wasmExecuteContractGeneric,
- Message_SignDirect? signDirectMessage,
- Message_AuthGrant? authGrant,
- Message_AuthRevoke? authRevoke,
Implementation
factory Message({
Message_Send? sendCoinsMessage,
Message_Transfer? transferTokensMessage,
Message_Delegate? stakeMessage,
Message_Undelegate? unstakeMessage,
Message_BeginRedelegate? restakeMessage,
Message_WithdrawDelegationReward? withdrawStakeRewardMessage,
Message_RawJSON? rawJsonMessage,
Message_WasmTerraExecuteContractTransfer?
wasmTerraExecuteContractTransferMessage,
Message_WasmTerraExecuteContractSend? wasmTerraExecuteContractSendMessage,
Message_THORChainSend? thorchainSendMessage,
Message_WasmTerraExecuteContractGeneric? wasmTerraExecuteContractGeneric,
Message_WasmExecuteContractTransfer? wasmExecuteContractTransferMessage,
Message_WasmExecuteContractSend? wasmExecuteContractSendMessage,
Message_WasmExecuteContractGeneric? wasmExecuteContractGeneric,
Message_SignDirect? signDirectMessage,
Message_AuthGrant? authGrant,
Message_AuthRevoke? authRevoke,
}) {
final _result = create();
if (sendCoinsMessage != null) {
_result.sendCoinsMessage = sendCoinsMessage;
}
if (transferTokensMessage != null) {
_result.transferTokensMessage = transferTokensMessage;
}
if (stakeMessage != null) {
_result.stakeMessage = stakeMessage;
}
if (unstakeMessage != null) {
_result.unstakeMessage = unstakeMessage;
}
if (restakeMessage != null) {
_result.restakeMessage = restakeMessage;
}
if (withdrawStakeRewardMessage != null) {
_result.withdrawStakeRewardMessage = withdrawStakeRewardMessage;
}
if (rawJsonMessage != null) {
_result.rawJsonMessage = rawJsonMessage;
}
if (wasmTerraExecuteContractTransferMessage != null) {
_result.wasmTerraExecuteContractTransferMessage =
wasmTerraExecuteContractTransferMessage;
}
if (wasmTerraExecuteContractSendMessage != null) {
_result.wasmTerraExecuteContractSendMessage =
wasmTerraExecuteContractSendMessage;
}
if (thorchainSendMessage != null) {
_result.thorchainSendMessage = thorchainSendMessage;
}
if (wasmTerraExecuteContractGeneric != null) {
_result.wasmTerraExecuteContractGeneric = wasmTerraExecuteContractGeneric;
}
if (wasmExecuteContractTransferMessage != null) {
_result.wasmExecuteContractTransferMessage =
wasmExecuteContractTransferMessage;
}
if (wasmExecuteContractSendMessage != null) {
_result.wasmExecuteContractSendMessage = wasmExecuteContractSendMessage;
}
if (wasmExecuteContractGeneric != null) {
_result.wasmExecuteContractGeneric = wasmExecuteContractGeneric;
}
if (signDirectMessage != null) {
_result.signDirectMessage = signDirectMessage;
}
if (authGrant != null) {
_result.authGrant = authGrant;
}
if (authRevoke != null) {
_result.authRevoke = authRevoke;
}
return _result;
}