SwapOutput constructor

SwapOutput({
  1. Chain? fromChain,
  2. Chain? toChain,
  3. Error? error,
  4. SigningInput? bitcoin,
  5. SigningInput? ethereum,
  6. SigningInput? binance,
  7. SigningInput? cosmos,
})

Implementation

factory SwapOutput({
  Chain? fromChain,
  Chain? toChain,
  Error? error,
  $0.SigningInput? bitcoin,
  $1.SigningInput? ethereum,
  $2.SigningInput? binance,
  $3.SigningInput? cosmos,
}) {
  final result = create();
  if (fromChain != null) result.fromChain = fromChain;
  if (toChain != null) result.toChain = toChain;
  if (error != null) result.error = error;
  if (bitcoin != null) result.bitcoin = bitcoin;
  if (ethereum != null) result.ethereum = ethereum;
  if (binance != null) result.binance = binance;
  if (cosmos != null) result.cosmos = cosmos;
  return result;
}