TimeLockOrder constructor

TimeLockOrder({
  1. List<int>? fromAddress,
  2. String? description,
  3. Iterable<SendOrder_Token>? amount,
  4. Int64? lockTime,
})

Implementation

factory TimeLockOrder({
  $core.List<$core.int>? fromAddress,
  $core.String? description,
  $core.Iterable<SendOrder_Token>? amount,
  $fixnum.Int64? lockTime,
}) {
  final _result = create();
  if (fromAddress != null) {
    _result.fromAddress = fromAddress;
  }
  if (description != null) {
    _result.description = description;
  }
  if (amount != null) {
    _result.amount.addAll(amount);
  }
  if (lockTime != null) {
    _result.lockTime = lockTime;
  }
  return _result;
}