PostOfferRequest constructor

PostOfferRequest({
  1. String? currencyCode,
  2. String? direction,
  3. String? price,
  4. bool? useMarketBasedPrice,
  5. double? marketPriceMarginPct,
  6. Int64? amount,
  7. Int64? minAmount,
  8. double? buyerSecurityDepositPct,
  9. String? triggerPrice,
  10. bool? reserveExactAmount,
  11. String? paymentAccountId,
})

Implementation

factory PostOfferRequest({
  $core.String? currencyCode,
  $core.String? direction,
  $core.String? price,
  $core.bool? useMarketBasedPrice,
  $core.double? marketPriceMarginPct,
  $fixnum.Int64? amount,
  $fixnum.Int64? minAmount,
  $core.double? buyerSecurityDepositPct,
  $core.String? triggerPrice,
  $core.bool? reserveExactAmount,
  $core.String? paymentAccountId,
}) {
  final $result = create();
  if (currencyCode != null) {
    $result.currencyCode = currencyCode;
  }
  if (direction != null) {
    $result.direction = direction;
  }
  if (price != null) {
    $result.price = price;
  }
  if (useMarketBasedPrice != null) {
    $result.useMarketBasedPrice = useMarketBasedPrice;
  }
  if (marketPriceMarginPct != null) {
    $result.marketPriceMarginPct = marketPriceMarginPct;
  }
  if (amount != null) {
    $result.amount = amount;
  }
  if (minAmount != null) {
    $result.minAmount = minAmount;
  }
  if (buyerSecurityDepositPct != null) {
    $result.buyerSecurityDepositPct = buyerSecurityDepositPct;
  }
  if (triggerPrice != null) {
    $result.triggerPrice = triggerPrice;
  }
  if (reserveExactAmount != null) {
    $result.reserveExactAmount = reserveExactAmount;
  }
  if (paymentAccountId != null) {
    $result.paymentAccountId = paymentAccountId;
  }
  return $result;
}