MsgUpdateRecipe constructor

MsgUpdateRecipe({
  1. String? creator,
  2. String? cookbookId,
  3. String? id,
  4. String? name,
  5. String? description,
  6. String? version,
  7. Iterable<CoinInput>? coinInputs,
  8. Iterable<ItemInput>? itemInputs,
  9. EntriesList? entries,
  10. Iterable<WeightedOutputs>? outputs,
  11. Int64? blockInterval,
  12. Coin? costPerBlock,
  13. bool? enabled,
  14. String? extraInfo,
})

Implementation

factory MsgUpdateRecipe({
  $core.String? creator,
  $core.String? cookbookId,
  $core.String? id,
  $core.String? name,
  $core.String? description,
  $core.String? version,
  $core.Iterable<$4.CoinInput>? coinInputs,
  $core.Iterable<$4.ItemInput>? itemInputs,
  $4.EntriesList? entries,
  $core.Iterable<$4.WeightedOutputs>? outputs,
  $fixnum.Int64? blockInterval,
  $2.Coin? costPerBlock,
  $core.bool? enabled,
  $core.String? extraInfo,
}) {
  final _result = create();
  if (creator != null) {
    _result.creator = creator;
  }
  if (cookbookId != null) {
    _result.cookbookId = cookbookId;
  }
  if (id != null) {
    _result.id = id;
  }
  if (name != null) {
    _result.name = name;
  }
  if (description != null) {
    _result.description = description;
  }
  if (version != null) {
    _result.version = version;
  }
  if (coinInputs != null) {
    _result.coinInputs.addAll(coinInputs);
  }
  if (itemInputs != null) {
    _result.itemInputs.addAll(itemInputs);
  }
  if (entries != null) {
    _result.entries = entries;
  }
  if (outputs != null) {
    _result.outputs.addAll(outputs);
  }
  if (blockInterval != null) {
    _result.blockInterval = blockInterval;
  }
  if (costPerBlock != null) {
    _result.costPerBlock = costPerBlock;
  }
  if (enabled != null) {
    _result.enabled = enabled;
  }
  if (extraInfo != null) {
    _result.extraInfo = extraInfo;
  }
  return _result;
}