SignOfferRequest constructor

SignOfferRequest({
  1. String? offerId,
  2. NodeAddress? senderNodeAddress,
  3. PubKeyRing? pubKeyRing,
  4. String? senderAccountId,
  5. OfferPayload? offerPayload,
  6. String? uid,
  7. Int64? currentDate,
  8. String? reserveTxHash,
  9. String? reserveTxHex,
  10. String? reserveTxKey,
  11. Iterable<String>? reserveTxKeyImages,
  12. String? payoutAddress,
})

Implementation

factory SignOfferRequest({
  $core.String? offerId,
  NodeAddress? senderNodeAddress,
  PubKeyRing? pubKeyRing,
  $core.String? senderAccountId,
  OfferPayload? offerPayload,
  $core.String? uid,
  $fixnum.Int64? currentDate,
  $core.String? reserveTxHash,
  $core.String? reserveTxHex,
  $core.String? reserveTxKey,
  $core.Iterable<$core.String>? reserveTxKeyImages,
  $core.String? payoutAddress,
}) {
  final $result = create();
  if (offerId != null) {
    $result.offerId = offerId;
  }
  if (senderNodeAddress != null) {
    $result.senderNodeAddress = senderNodeAddress;
  }
  if (pubKeyRing != null) {
    $result.pubKeyRing = pubKeyRing;
  }
  if (senderAccountId != null) {
    $result.senderAccountId = senderAccountId;
  }
  if (offerPayload != null) {
    $result.offerPayload = offerPayload;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (currentDate != null) {
    $result.currentDate = currentDate;
  }
  if (reserveTxHash != null) {
    $result.reserveTxHash = reserveTxHash;
  }
  if (reserveTxHex != null) {
    $result.reserveTxHex = reserveTxHex;
  }
  if (reserveTxKey != null) {
    $result.reserveTxKey = reserveTxKey;
  }
  if (reserveTxKeyImages != null) {
    $result.reserveTxKeyImages.addAll(reserveTxKeyImages);
  }
  if (payoutAddress != null) {
    $result.payoutAddress = payoutAddress;
  }
  return $result;
}