InventoryDemandMap constructor

InventoryDemandMap({
  1. Int64? familyId,
  2. Iterable<InventoryDemand>? baseDemandList,
  3. Iterable<InventoryDemand>? adjustedDemandList,
  4. Int64? baseDemandQuantity,
  5. Int64? adjustedDemandQuantity,
  6. Int64? requiredQuantity,
  7. bool? isEvaluated,
})

Implementation

factory InventoryDemandMap({
  $fixnum.Int64? familyId,
  $core.Iterable<InventoryDemand>? baseDemandList,
  $core.Iterable<InventoryDemand>? adjustedDemandList,
  $fixnum.Int64? baseDemandQuantity,
  $fixnum.Int64? adjustedDemandQuantity,
  $fixnum.Int64? requiredQuantity,
  $core.bool? isEvaluated,
}) {
  final result = create();
  if (familyId != null) result.familyId = familyId;
  if (baseDemandList != null) result.baseDemandList.addAll(baseDemandList);
  if (adjustedDemandList != null)
    result.adjustedDemandList.addAll(adjustedDemandList);
  if (baseDemandQuantity != null)
    result.baseDemandQuantity = baseDemandQuantity;
  if (adjustedDemandQuantity != null)
    result.adjustedDemandQuantity = adjustedDemandQuantity;
  if (requiredQuantity != null) result.requiredQuantity = requiredQuantity;
  if (isEvaluated != null) result.isEvaluated = isEvaluated;
  return result;
}