WithdrawRequest constructor

WithdrawRequest({
  1. String? userId,
  2. String? toAddress,
  3. double? amount,
  4. CurrencyPair? pair,
})

Implementation

factory WithdrawRequest({
  $core.String? userId,
  $core.String? toAddress,
  $core.double? amount,
  CurrencyPair? pair,
}) {
  final $result = create();
  if (userId != null) {
    $result.userId = userId;
  }
  if (toAddress != null) {
    $result.toAddress = toAddress;
  }
  if (amount != null) {
    $result.amount = amount;
  }
  if (pair != null) {
    $result.pair = pair;
  }
  return $result;
}