HTLTOrder constructor

HTLTOrder({
  1. List<int>? from,
  2. List<int>? to,
  3. String? recipientOtherChain,
  4. String? senderOtherChain,
  5. List<int>? randomNumberHash,
  6. Int64? timestamp,
  7. Iterable<SendOrder_Token>? amount,
  8. String? expectedIncome,
  9. Int64? heightSpan,
  10. bool? crossChain,
})

Implementation

factory HTLTOrder({
  $core.List<$core.int>? from,
  $core.List<$core.int>? to,
  $core.String? recipientOtherChain,
  $core.String? senderOtherChain,
  $core.List<$core.int>? randomNumberHash,
  $fixnum.Int64? timestamp,
  $core.Iterable<SendOrder_Token>? amount,
  $core.String? expectedIncome,
  $fixnum.Int64? heightSpan,
  $core.bool? crossChain,
}) {
  final _result = create();
  if (from != null) {
    _result.from = from;
  }
  if (to != null) {
    _result.to = to;
  }
  if (recipientOtherChain != null) {
    _result.recipientOtherChain = recipientOtherChain;
  }
  if (senderOtherChain != null) {
    _result.senderOtherChain = senderOtherChain;
  }
  if (randomNumberHash != null) {
    _result.randomNumberHash = randomNumberHash;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (amount != null) {
    _result.amount.addAll(amount);
  }
  if (expectedIncome != null) {
    _result.expectedIncome = expectedIncome;
  }
  if (heightSpan != null) {
    _result.heightSpan = heightSpan;
  }
  if (crossChain != null) {
    _result.crossChain = crossChain;
  }
  return _result;
}