Execution constructor

Execution({
  1. String? creator,
  2. String? id,
  3. String? recipeId,
  4. String? cookbookId,
  5. String? recipeVersion,
  6. Int64? nodeVersion,
  7. Int64? blockHeight,
  8. Iterable<ItemRecord>? itemInputs,
  9. Iterable<Coin>? coinInputs,
  10. Iterable<Coin>? coinOutputs,
  11. Iterable<String>? itemOutputIds,
  12. Iterable<String>? itemModifyOutputIds,
})

Implementation

factory Execution({
  $core.String? creator,
  $core.String? id,
  $core.String? recipeId,
  $core.String? cookbookId,
  $core.String? recipeVersion,
  $fixnum.Int64? nodeVersion,
  $fixnum.Int64? blockHeight,
  $core.Iterable<ItemRecord>? itemInputs,
  $core.Iterable<$2.Coin>? coinInputs,
  $core.Iterable<$2.Coin>? coinOutputs,
  $core.Iterable<$core.String>? itemOutputIds,
  $core.Iterable<$core.String>? itemModifyOutputIds,
}) {
  final _result = create();
  if (creator != null) {
    _result.creator = creator;
  }
  if (id != null) {
    _result.id = id;
  }
  if (recipeId != null) {
    _result.recipeId = recipeId;
  }
  if (cookbookId != null) {
    _result.cookbookId = cookbookId;
  }
  if (recipeVersion != null) {
    _result.recipeVersion = recipeVersion;
  }
  if (nodeVersion != null) {
    _result.nodeVersion = nodeVersion;
  }
  if (blockHeight != null) {
    _result.blockHeight = blockHeight;
  }
  if (itemInputs != null) {
    _result.itemInputs.addAll(itemInputs);
  }
  if (coinInputs != null) {
    _result.coinInputs.addAll(coinInputs);
  }
  if (coinOutputs != null) {
    _result.coinOutputs.addAll(coinOutputs);
  }
  if (itemOutputIds != null) {
    _result.itemOutputIds.addAll(itemOutputIds);
  }
  if (itemModifyOutputIds != null) {
    _result.itemModifyOutputIds.addAll(itemModifyOutputIds);
  }
  return _result;
}