ItemOutput constructor

ItemOutput({
  1. String? id,
  2. Iterable<DoubleParam>? doubles,
  3. Iterable<LongParam>? longs,
  4. Iterable<StringParam>? strings,
  5. Iterable<StringKeyValue>? mutableStrings,
  6. Iterable<Coin>? transferFee,
  7. String? tradePercentage,
  8. Int64? quantity,
  9. Int64? amountMinted,
  10. bool? tradeable,
})

Implementation

factory ItemOutput({
  $core.String? id,
  $core.Iterable<DoubleParam>? doubles,
  $core.Iterable<LongParam>? longs,
  $core.Iterable<StringParam>? strings,
  $core.Iterable<$3.StringKeyValue>? mutableStrings,
  $core.Iterable<$2.Coin>? transferFee,
  $core.String? tradePercentage,
  $fixnum.Int64? quantity,
  $fixnum.Int64? amountMinted,
  $core.bool? tradeable,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (doubles != null) {
    _result.doubles.addAll(doubles);
  }
  if (longs != null) {
    _result.longs.addAll(longs);
  }
  if (strings != null) {
    _result.strings.addAll(strings);
  }
  if (mutableStrings != null) {
    _result.mutableStrings.addAll(mutableStrings);
  }
  if (transferFee != null) {
    _result.transferFee.addAll(transferFee);
  }
  if (tradePercentage != null) {
    _result.tradePercentage = tradePercentage;
  }
  if (quantity != null) {
    _result.quantity = quantity;
  }
  if (amountMinted != null) {
    _result.amountMinted = amountMinted;
  }
  if (tradeable != null) {
    _result.tradeable = tradeable;
  }
  return _result;
}