PreferencesPayload constructor

PreferencesPayload({
  1. String? userLanguage,
  2. Country? userCountry,
  3. Iterable<TradeCurrency>? traditionalCurrencies,
  4. Iterable<TradeCurrency>? cryptoCurrencies,
  5. BlockChainExplorer? blockChainExplorerMainNet,
  6. BlockChainExplorer? blockChainExplorerTestNet,
  7. String? backupDirectory,
  8. bool? autoSelectArbitrators,
  9. Map<String, bool>? dontShowAgainMap,
  10. bool? tacAccepted,
  11. int? useTorForXmrOrdinal,
  12. bool? showOwnOffersInOfferBook,
  13. TradeCurrency? preferredTradeCurrency,
  14. Int64? withdrawalTxFeeInVbytes,
  15. bool? useCustomWithdrawalTxFee,
  16. double? maxPriceDistanceInPercent,
  17. String? offerBookChartScreenCurrencyCode,
  18. String? tradeChartsScreenCurrencyCode,
  19. String? buyScreenCurrencyCode,
  20. String? sellScreenCurrencyCode,
  21. int? tradeStatisticsTickUnitIndex,
  22. bool? resyncSpvRequested,
  23. bool? sortMarketCurrenciesNumerically,
  24. bool? usePercentageBasedPrice,
  25. Map<String, String>? peerTagMap,
  26. String? moneroNodes,
  27. Iterable<String>? ignoreTradersList,
  28. String? directoryChooserPath,
  29. bool? useAnimations,
  30. PaymentAccount? selectedPaymentAccountForCreateOffer,
  31. Iterable<String>? bridgeAddresses,
  32. int? bridgeOptionOrdinal,
  33. int? torTransportOrdinal,
  34. String? customBridges,
  35. int? moneroNodesOptionOrdinal,
  36. String? referralId,
  37. String? phoneKeyAndToken,
  38. bool? useSoundForMobileNotifications,
  39. bool? useTradeNotifications,
  40. bool? useMarketNotifications,
  41. bool? usePriceNotifications,
  42. bool? useStandbyMode,
  43. String? rpcUser,
  44. String? rpcPw,
  45. String? takeOfferSelectedPaymentAccountId,
  46. double? buyerSecurityDepositAsPercent,
  47. int? ignoreDustThreshold,
  48. double? buyerSecurityDepositAsPercentForCrypto,
  49. int? blockNotifyPort,
  50. int? cssTheme,
  51. bool? tacAcceptedV120,
  52. Iterable<AutoConfirmSettings>? autoConfirmSettings,
  53. double? bsqAverageTrimThreshold,
  54. bool? hideNonAccountPaymentMethods,
  55. bool? showOffersMatchingMyAccounts,
  56. bool? denyApiTaker,
  57. bool? notifyOnPreRelease,
  58. XmrNodeSettings? xmrNodeSettings,
  59. int? clearDataAfterDays,
  60. String? buyScreenCryptoCurrencyCode,
  61. String? sellScreenCryptoCurrencyCode,
  62. bool? splitOfferOutput,
})

Implementation

factory PreferencesPayload({
  $core.String? userLanguage,
  Country? userCountry,
  $core.Iterable<TradeCurrency>? traditionalCurrencies,
  $core.Iterable<TradeCurrency>? cryptoCurrencies,
  BlockChainExplorer? blockChainExplorerMainNet,
  BlockChainExplorer? blockChainExplorerTestNet,
  $core.String? backupDirectory,
  $core.bool? autoSelectArbitrators,
  $core.Map<$core.String, $core.bool>? dontShowAgainMap,
  $core.bool? tacAccepted,
  $core.int? useTorForXmrOrdinal,
  $core.bool? showOwnOffersInOfferBook,
  TradeCurrency? preferredTradeCurrency,
  $fixnum.Int64? withdrawalTxFeeInVbytes,
  $core.bool? useCustomWithdrawalTxFee,
  $core.double? maxPriceDistanceInPercent,
  $core.String? offerBookChartScreenCurrencyCode,
  $core.String? tradeChartsScreenCurrencyCode,
  $core.String? buyScreenCurrencyCode,
  $core.String? sellScreenCurrencyCode,
  $core.int? tradeStatisticsTickUnitIndex,
  $core.bool? resyncSpvRequested,
  $core.bool? sortMarketCurrenciesNumerically,
  $core.bool? usePercentageBasedPrice,
  $core.Map<$core.String, $core.String>? peerTagMap,
  $core.String? moneroNodes,
  $core.Iterable<$core.String>? ignoreTradersList,
  $core.String? directoryChooserPath,
  $core.bool? useAnimations,
  PaymentAccount? selectedPaymentAccountForCreateOffer,
  $core.Iterable<$core.String>? bridgeAddresses,
  $core.int? bridgeOptionOrdinal,
  $core.int? torTransportOrdinal,
  $core.String? customBridges,
  $core.int? moneroNodesOptionOrdinal,
  $core.String? referralId,
  $core.String? phoneKeyAndToken,
  $core.bool? useSoundForMobileNotifications,
  $core.bool? useTradeNotifications,
  $core.bool? useMarketNotifications,
  $core.bool? usePriceNotifications,
  $core.bool? useStandbyMode,
  $core.String? rpcUser,
  $core.String? rpcPw,
  $core.String? takeOfferSelectedPaymentAccountId,
  $core.double? buyerSecurityDepositAsPercent,
  $core.int? ignoreDustThreshold,
  $core.double? buyerSecurityDepositAsPercentForCrypto,
  $core.int? blockNotifyPort,
  $core.int? cssTheme,
  $core.bool? tacAcceptedV120,
  $core.Iterable<AutoConfirmSettings>? autoConfirmSettings,
  $core.double? bsqAverageTrimThreshold,
  $core.bool? hideNonAccountPaymentMethods,
  $core.bool? showOffersMatchingMyAccounts,
  $core.bool? denyApiTaker,
  $core.bool? notifyOnPreRelease,
  XmrNodeSettings? xmrNodeSettings,
  $core.int? clearDataAfterDays,
  $core.String? buyScreenCryptoCurrencyCode,
  $core.String? sellScreenCryptoCurrencyCode,
  $core.bool? splitOfferOutput,
}) {
  final $result = create();
  if (userLanguage != null) {
    $result.userLanguage = userLanguage;
  }
  if (userCountry != null) {
    $result.userCountry = userCountry;
  }
  if (traditionalCurrencies != null) {
    $result.traditionalCurrencies.addAll(traditionalCurrencies);
  }
  if (cryptoCurrencies != null) {
    $result.cryptoCurrencies.addAll(cryptoCurrencies);
  }
  if (blockChainExplorerMainNet != null) {
    $result.blockChainExplorerMainNet = blockChainExplorerMainNet;
  }
  if (blockChainExplorerTestNet != null) {
    $result.blockChainExplorerTestNet = blockChainExplorerTestNet;
  }
  if (backupDirectory != null) {
    $result.backupDirectory = backupDirectory;
  }
  if (autoSelectArbitrators != null) {
    $result.autoSelectArbitrators = autoSelectArbitrators;
  }
  if (dontShowAgainMap != null) {
    $result.dontShowAgainMap.addAll(dontShowAgainMap);
  }
  if (tacAccepted != null) {
    $result.tacAccepted = tacAccepted;
  }
  if (useTorForXmrOrdinal != null) {
    $result.useTorForXmrOrdinal = useTorForXmrOrdinal;
  }
  if (showOwnOffersInOfferBook != null) {
    $result.showOwnOffersInOfferBook = showOwnOffersInOfferBook;
  }
  if (preferredTradeCurrency != null) {
    $result.preferredTradeCurrency = preferredTradeCurrency;
  }
  if (withdrawalTxFeeInVbytes != null) {
    $result.withdrawalTxFeeInVbytes = withdrawalTxFeeInVbytes;
  }
  if (useCustomWithdrawalTxFee != null) {
    $result.useCustomWithdrawalTxFee = useCustomWithdrawalTxFee;
  }
  if (maxPriceDistanceInPercent != null) {
    $result.maxPriceDistanceInPercent = maxPriceDistanceInPercent;
  }
  if (offerBookChartScreenCurrencyCode != null) {
    $result.offerBookChartScreenCurrencyCode = offerBookChartScreenCurrencyCode;
  }
  if (tradeChartsScreenCurrencyCode != null) {
    $result.tradeChartsScreenCurrencyCode = tradeChartsScreenCurrencyCode;
  }
  if (buyScreenCurrencyCode != null) {
    $result.buyScreenCurrencyCode = buyScreenCurrencyCode;
  }
  if (sellScreenCurrencyCode != null) {
    $result.sellScreenCurrencyCode = sellScreenCurrencyCode;
  }
  if (tradeStatisticsTickUnitIndex != null) {
    $result.tradeStatisticsTickUnitIndex = tradeStatisticsTickUnitIndex;
  }
  if (resyncSpvRequested != null) {
    $result.resyncSpvRequested = resyncSpvRequested;
  }
  if (sortMarketCurrenciesNumerically != null) {
    $result.sortMarketCurrenciesNumerically = sortMarketCurrenciesNumerically;
  }
  if (usePercentageBasedPrice != null) {
    $result.usePercentageBasedPrice = usePercentageBasedPrice;
  }
  if (peerTagMap != null) {
    $result.peerTagMap.addAll(peerTagMap);
  }
  if (moneroNodes != null) {
    $result.moneroNodes = moneroNodes;
  }
  if (ignoreTradersList != null) {
    $result.ignoreTradersList.addAll(ignoreTradersList);
  }
  if (directoryChooserPath != null) {
    $result.directoryChooserPath = directoryChooserPath;
  }
  if (useAnimations != null) {
    $result.useAnimations = useAnimations;
  }
  if (selectedPaymentAccountForCreateOffer != null) {
    $result.selectedPaymentAccountForCreateOffer = selectedPaymentAccountForCreateOffer;
  }
  if (bridgeAddresses != null) {
    $result.bridgeAddresses.addAll(bridgeAddresses);
  }
  if (bridgeOptionOrdinal != null) {
    $result.bridgeOptionOrdinal = bridgeOptionOrdinal;
  }
  if (torTransportOrdinal != null) {
    $result.torTransportOrdinal = torTransportOrdinal;
  }
  if (customBridges != null) {
    $result.customBridges = customBridges;
  }
  if (moneroNodesOptionOrdinal != null) {
    $result.moneroNodesOptionOrdinal = moneroNodesOptionOrdinal;
  }
  if (referralId != null) {
    $result.referralId = referralId;
  }
  if (phoneKeyAndToken != null) {
    $result.phoneKeyAndToken = phoneKeyAndToken;
  }
  if (useSoundForMobileNotifications != null) {
    $result.useSoundForMobileNotifications = useSoundForMobileNotifications;
  }
  if (useTradeNotifications != null) {
    $result.useTradeNotifications = useTradeNotifications;
  }
  if (useMarketNotifications != null) {
    $result.useMarketNotifications = useMarketNotifications;
  }
  if (usePriceNotifications != null) {
    $result.usePriceNotifications = usePriceNotifications;
  }
  if (useStandbyMode != null) {
    $result.useStandbyMode = useStandbyMode;
  }
  if (rpcUser != null) {
    $result.rpcUser = rpcUser;
  }
  if (rpcPw != null) {
    $result.rpcPw = rpcPw;
  }
  if (takeOfferSelectedPaymentAccountId != null) {
    $result.takeOfferSelectedPaymentAccountId = takeOfferSelectedPaymentAccountId;
  }
  if (buyerSecurityDepositAsPercent != null) {
    $result.buyerSecurityDepositAsPercent = buyerSecurityDepositAsPercent;
  }
  if (ignoreDustThreshold != null) {
    $result.ignoreDustThreshold = ignoreDustThreshold;
  }
  if (buyerSecurityDepositAsPercentForCrypto != null) {
    $result.buyerSecurityDepositAsPercentForCrypto = buyerSecurityDepositAsPercentForCrypto;
  }
  if (blockNotifyPort != null) {
    $result.blockNotifyPort = blockNotifyPort;
  }
  if (cssTheme != null) {
    $result.cssTheme = cssTheme;
  }
  if (tacAcceptedV120 != null) {
    $result.tacAcceptedV120 = tacAcceptedV120;
  }
  if (autoConfirmSettings != null) {
    $result.autoConfirmSettings.addAll(autoConfirmSettings);
  }
  if (bsqAverageTrimThreshold != null) {
    $result.bsqAverageTrimThreshold = bsqAverageTrimThreshold;
  }
  if (hideNonAccountPaymentMethods != null) {
    $result.hideNonAccountPaymentMethods = hideNonAccountPaymentMethods;
  }
  if (showOffersMatchingMyAccounts != null) {
    $result.showOffersMatchingMyAccounts = showOffersMatchingMyAccounts;
  }
  if (denyApiTaker != null) {
    $result.denyApiTaker = denyApiTaker;
  }
  if (notifyOnPreRelease != null) {
    $result.notifyOnPreRelease = notifyOnPreRelease;
  }
  if (xmrNodeSettings != null) {
    $result.xmrNodeSettings = xmrNodeSettings;
  }
  if (clearDataAfterDays != null) {
    $result.clearDataAfterDays = clearDataAfterDays;
  }
  if (buyScreenCryptoCurrencyCode != null) {
    $result.buyScreenCryptoCurrencyCode = buyScreenCryptoCurrencyCode;
  }
  if (sellScreenCryptoCurrencyCode != null) {
    $result.sellScreenCryptoCurrencyCode = sellScreenCryptoCurrencyCode;
  }
  if (splitOfferOutput != null) {
    $result.splitOfferOutput = splitOfferOutput;
  }
  return $result;
}