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,
  12. Message_WasmExecuteContractTransfer? wasmExecuteContractTransferMessage,
  13. Message_WasmExecuteContractSend? wasmExecuteContractSendMessage,
  14. Message_WasmExecuteContractGeneric? wasmExecuteContractGeneric,
  15. Message_SignDirect? signDirectMessage,
  16. Message_AuthGrant? authGrant,
  17. 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;
}