StockMovement constructor

StockMovement({
  1. required String id,
  2. String? type,
  3. String? articleId,
  4. String? locationId,
  5. String? condition,
  6. required int quantityDelta,
  7. int reservedDelta = 0,
  8. StockAfter? stockAfter,
  9. String? operationId,
  10. StockMovementSourceRef? source,
  11. String? viennaDay,
  12. String? time,
  13. List<StockMovementLot> lots = const [],
  14. int? valueDeltaCents,
  15. bool? hasValueDeltaCents,
  16. int? consumedValueCents,
  17. bool? hasConsumedValueCents,
})

Implementation

StockMovement({
  required this.id,
  this.type,
  this.articleId,
  this.locationId,
  this.condition,
  required this.quantityDelta,
  this.reservedDelta = 0,
  this.stockAfter,
  this.operationId,
  this.source,
  this.viennaDay,
  this.time,
  this.lots = const [],
  this.valueDeltaCents,
  bool? hasValueDeltaCents,
  this.consumedValueCents,
  bool? hasConsumedValueCents,
})  : hasValueDeltaCents = hasValueDeltaCents ?? valueDeltaCents != null,
      hasConsumedValueCents = hasConsumedValueCents ?? consumedValueCents != null;