OfferAvailabilityRequest constructor

OfferAvailabilityRequest({
  1. String? offerId,
  2. PubKeyRing? pubKeyRing,
  3. Int64? takersTradePrice,
  4. Iterable<int>? supportedCapabilities,
  5. String? uid,
  6. bool? isTakerApiUser,
  7. InitTradeRequest? tradeRequest,
})

Implementation

factory OfferAvailabilityRequest({
  $core.String? offerId,
  PubKeyRing? pubKeyRing,
  $fixnum.Int64? takersTradePrice,
  $core.Iterable<$core.int>? supportedCapabilities,
  $core.String? uid,
  $core.bool? isTakerApiUser,
  InitTradeRequest? tradeRequest,
}) {
  final $result = create();
  if (offerId != null) {
    $result.offerId = offerId;
  }
  if (pubKeyRing != null) {
    $result.pubKeyRing = pubKeyRing;
  }
  if (takersTradePrice != null) {
    $result.takersTradePrice = takersTradePrice;
  }
  if (supportedCapabilities != null) {
    $result.supportedCapabilities.addAll(supportedCapabilities);
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (isTakerApiUser != null) {
    $result.isTakerApiUser = isTakerApiUser;
  }
  if (tradeRequest != null) {
    $result.tradeRequest = tradeRequest;
  }
  return $result;
}