Message constructor

Message({
  1. Message_Send? sendCoinsMessage,
  2. Message_Transfer? transferTokensMessage,
  3. Message_Delegate? stakeMessage,
  4. Message_Undelegate? unstakeMessage,
  5. Message_BeginRedelegate? restakeMessage,
  6. Message_WithdrawDelegationReward? withdrawStakeRewardMessage,
  7. Message_RawJSON? rawJsonMessage,
  8. Message_WasmTerraExecuteContractTransfer? wasmTerraExecuteContractTransferMessage,
  9. Message_WasmTerraExecuteContractSend? wasmTerraExecuteContractSendMessage,
  10. Message_THORChainSend? thorchainSendMessage,
  11. 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;
}