MsgExecuteRecipe constructor

MsgExecuteRecipe({
  1. String? creator,
  2. String? cookbookId,
  3. String? recipeId,
  4. Int64? coinInputsIndex,
  5. Iterable<String>? itemIds,
  6. Iterable<PaymentInfo>? paymentInfos,
})

Implementation

factory MsgExecuteRecipe({
  $core.String? creator,
  $core.String? cookbookId,
  $core.String? recipeId,
  $fixnum.Int64? coinInputsIndex,
  $core.Iterable<$core.String>? itemIds,
  $core.Iterable<$7.PaymentInfo>? paymentInfos,
}) {
  final _result = create();
  if (creator != null) {
    _result.creator = creator;
  }
  if (cookbookId != null) {
    _result.cookbookId = cookbookId;
  }
  if (recipeId != null) {
    _result.recipeId = recipeId;
  }
  if (coinInputsIndex != null) {
    _result.coinInputsIndex = coinInputsIndex;
  }
  if (itemIds != null) {
    _result.itemIds.addAll(itemIds);
  }
  if (paymentInfos != null) {
    _result.paymentInfos.addAll(paymentInfos);
  }
  return _result;
}