MsgFulfillTrade constructor

MsgFulfillTrade({
  1. String? creator,
  2. Int64? id,
  3. Int64? coinInputsIndex,
  4. Iterable<ItemRef>? items,
  5. Iterable<PaymentInfo>? paymentInfos,
})

Implementation

factory MsgFulfillTrade({
  $core.String? creator,
  $fixnum.Int64? id,
  $fixnum.Int64? coinInputsIndex,
  $core.Iterable<$8.ItemRef>? items,
  $core.Iterable<$7.PaymentInfo>? paymentInfos,
}) {
  final _result = create();
  if (creator != null) {
    _result.creator = creator;
  }
  if (id != null) {
    _result.id = id;
  }
  if (coinInputsIndex != null) {
    _result.coinInputsIndex = coinInputsIndex;
  }
  if (items != null) {
    _result.items.addAll(items);
  }
  if (paymentInfos != null) {
    _result.paymentInfos.addAll(paymentInfos);
  }
  return _result;
}