Item constructor

Item({
  1. String? owner,
  2. String? cookbookId,
  3. String? id,
  4. Int64? nodeVersion,
  5. Iterable<DoubleKeyValue>? doubles,
  6. Iterable<LongKeyValue>? longs,
  7. Iterable<StringKeyValue>? strings,
  8. Iterable<StringKeyValue>? mutableStrings,
  9. bool? tradeable,
  10. Int64? lastUpdate,
  11. Iterable<Coin>? transferFee,
  12. String? tradePercentage,
  13. Int64? createdAt,
  14. Int64? updatedAt,
  15. String? recipeId,
})

Implementation

factory Item({
  $core.String? owner,
  $core.String? cookbookId,
  $core.String? id,
  $fixnum.Int64? nodeVersion,
  $core.Iterable<DoubleKeyValue>? doubles,
  $core.Iterable<LongKeyValue>? longs,
  $core.Iterable<StringKeyValue>? strings,
  $core.Iterable<StringKeyValue>? mutableStrings,
  $core.bool? tradeable,
  $fixnum.Int64? lastUpdate,
  $core.Iterable<$2.Coin>? transferFee,
  $core.String? tradePercentage,
  $fixnum.Int64? createdAt,
  $fixnum.Int64? updatedAt,
  $core.String? recipeId,
}) {
  final _result = create();
  if (owner != null) {
    _result.owner = owner;
  }
  if (cookbookId != null) {
    _result.cookbookId = cookbookId;
  }
  if (id != null) {
    _result.id = id;
  }
  if (nodeVersion != null) {
    _result.nodeVersion = nodeVersion;
  }
  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 (tradeable != null) {
    _result.tradeable = tradeable;
  }
  if (lastUpdate != null) {
    _result.lastUpdate = lastUpdate;
  }
  if (transferFee != null) {
    _result.transferFee.addAll(transferFee);
  }
  if (tradePercentage != null) {
    _result.tradePercentage = tradePercentage;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (recipeId != null) {
    _result.recipeId = recipeId;
  }
  return _result;
}