Recipe constructor
Recipe({
- String? cookbookId,
- String? id,
- Int64? nodeVersion,
- String? name,
- String? description,
- String? version,
- Iterable<
CoinInput> ? coinInputs, - Iterable<
ItemInput> ? itemInputs, - EntriesList? entries,
- Iterable<
WeightedOutputs> ? outputs, - Int64? blockInterval,
- Coin? costPerBlock,
- bool? enabled,
- String? extraInfo,
- Int64? createdAt,
- Int64? updatedAt,
Implementation
factory Recipe({
$core.String? cookbookId,
$core.String? id,
$fixnum.Int64? nodeVersion,
$core.String? name,
$core.String? description,
$core.String? version,
$core.Iterable<CoinInput>? coinInputs,
$core.Iterable<ItemInput>? itemInputs,
EntriesList? entries,
$core.Iterable<WeightedOutputs>? outputs,
$fixnum.Int64? blockInterval,
$2.Coin? costPerBlock,
$core.bool? enabled,
$core.String? extraInfo,
$fixnum.Int64? createdAt,
$fixnum.Int64? updatedAt,
}) {
final _result = create();
if (cookbookId != null) {
_result.cookbookId = cookbookId;
}
if (id != null) {
_result.id = id;
}
if (nodeVersion != null) {
_result.nodeVersion = nodeVersion;
}
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;
}
if (createdAt != null) {
_result.createdAt = createdAt;
}
if (updatedAt != null) {
_result.updatedAt = updatedAt;
}
return _result;
}