Contract constructor

Contract({
  1. OfferPayload? offerPayload,
  2. Int64? tradeAmount,
  3. Int64? tradePrice,
  4. NodeAddress? arbitratorNodeAddress,
  5. bool? isBuyerMakerAndSellerTaker,
  6. String? makerAccountId,
  7. String? takerAccountId,
  8. String? makerPaymentMethodId,
  9. String? takerPaymentMethodId,
  10. List<int>? makerPaymentAccountPayloadHash,
  11. List<int>? takerPaymentAccountPayloadHash,
  12. PubKeyRing? makerPubKeyRing,
  13. PubKeyRing? takerPubKeyRing,
  14. NodeAddress? buyerNodeAddress,
  15. NodeAddress? sellerNodeAddress,
  16. String? makerPayoutAddressString,
  17. String? takerPayoutAddressString,
  18. String? makerDepositTxHash,
  19. String? takerDepositTxHash,
})

Implementation

factory Contract({
  OfferPayload? offerPayload,
  $fixnum.Int64? tradeAmount,
  $fixnum.Int64? tradePrice,
  NodeAddress? arbitratorNodeAddress,
  $core.bool? isBuyerMakerAndSellerTaker,
  $core.String? makerAccountId,
  $core.String? takerAccountId,
  $core.String? makerPaymentMethodId,
  $core.String? takerPaymentMethodId,
  $core.List<$core.int>? makerPaymentAccountPayloadHash,
  $core.List<$core.int>? takerPaymentAccountPayloadHash,
  PubKeyRing? makerPubKeyRing,
  PubKeyRing? takerPubKeyRing,
  NodeAddress? buyerNodeAddress,
  NodeAddress? sellerNodeAddress,
  $core.String? makerPayoutAddressString,
  $core.String? takerPayoutAddressString,
  $core.String? makerDepositTxHash,
  $core.String? takerDepositTxHash,
}) {
  final $result = create();
  if (offerPayload != null) {
    $result.offerPayload = offerPayload;
  }
  if (tradeAmount != null) {
    $result.tradeAmount = tradeAmount;
  }
  if (tradePrice != null) {
    $result.tradePrice = tradePrice;
  }
  if (arbitratorNodeAddress != null) {
    $result.arbitratorNodeAddress = arbitratorNodeAddress;
  }
  if (isBuyerMakerAndSellerTaker != null) {
    $result.isBuyerMakerAndSellerTaker = isBuyerMakerAndSellerTaker;
  }
  if (makerAccountId != null) {
    $result.makerAccountId = makerAccountId;
  }
  if (takerAccountId != null) {
    $result.takerAccountId = takerAccountId;
  }
  if (makerPaymentMethodId != null) {
    $result.makerPaymentMethodId = makerPaymentMethodId;
  }
  if (takerPaymentMethodId != null) {
    $result.takerPaymentMethodId = takerPaymentMethodId;
  }
  if (makerPaymentAccountPayloadHash != null) {
    $result.makerPaymentAccountPayloadHash = makerPaymentAccountPayloadHash;
  }
  if (takerPaymentAccountPayloadHash != null) {
    $result.takerPaymentAccountPayloadHash = takerPaymentAccountPayloadHash;
  }
  if (makerPubKeyRing != null) {
    $result.makerPubKeyRing = makerPubKeyRing;
  }
  if (takerPubKeyRing != null) {
    $result.takerPubKeyRing = takerPubKeyRing;
  }
  if (buyerNodeAddress != null) {
    $result.buyerNodeAddress = buyerNodeAddress;
  }
  if (sellerNodeAddress != null) {
    $result.sellerNodeAddress = sellerNodeAddress;
  }
  if (makerPayoutAddressString != null) {
    $result.makerPayoutAddressString = makerPayoutAddressString;
  }
  if (takerPayoutAddressString != null) {
    $result.takerPayoutAddressString = takerPayoutAddressString;
  }
  if (makerDepositTxHash != null) {
    $result.makerDepositTxHash = makerDepositTxHash;
  }
  if (takerDepositTxHash != null) {
    $result.takerDepositTxHash = takerDepositTxHash;
  }
  return $result;
}