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,
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,
}) {
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;
}
return _result;
}