TradeStatistics3 constructor

TradeStatistics3({
  1. String? currency,
  2. Int64? price,
  3. Int64? amount,
  4. String? paymentMethod,
  5. Int64? date,
  6. String? arbitrator,
  7. List<int>? hash,
  8. String? makerDepositTxId,
  9. String? takerDepositTxId,
  10. Map<String, String>? extraData,
})

Implementation

factory TradeStatistics3({
  $core.String? currency,
  $fixnum.Int64? price,
  $fixnum.Int64? amount,
  $core.String? paymentMethod,
  $fixnum.Int64? date,
  $core.String? arbitrator,
  $core.List<$core.int>? hash,
  $core.String? makerDepositTxId,
  $core.String? takerDepositTxId,
  $core.Map<$core.String, $core.String>? extraData,
}) {
  final $result = create();
  if (currency != null) {
    $result.currency = currency;
  }
  if (price != null) {
    $result.price = price;
  }
  if (amount != null) {
    $result.amount = amount;
  }
  if (paymentMethod != null) {
    $result.paymentMethod = paymentMethod;
  }
  if (date != null) {
    $result.date = date;
  }
  if (arbitrator != null) {
    $result.arbitrator = arbitrator;
  }
  if (hash != null) {
    $result.hash = hash;
  }
  if (makerDepositTxId != null) {
    $result.makerDepositTxId = makerDepositTxId;
  }
  if (takerDepositTxId != null) {
    $result.takerDepositTxId = takerDepositTxId;
  }
  if (extraData != null) {
    $result.extraData.addAll(extraData);
  }
  return $result;
}