SwapOutput constructor

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

Implementation

factory SwapOutput({
  Chain? fromChain,
  Chain? toChain,
  Error? error,
  $1.SigningInput? bitcoin,
  $2.SigningInput? ethereum,
  $3.SigningInput? binance,
}) {
  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;
  }
  return _result;
}