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;
}