GenericInventory constructor

GenericInventory({
  1. String? entityUuid,
  2. EmployeeMetadata? metadata,
  3. INVENTORY_LIFECYCLE? status,
  4. Int64? storeIntakeAt,
  5. Int64? consumedOrRejectedAt,
  6. Int64? reworkStartAt,
  7. Int64? reworkEndAt,
  8. Int64? returnedOrScrappedAt,
  9. Int64? discardedAt,
  10. Int64? vaultFolderId,
  11. Int64? parentRefId,
  12. GENERIC_INVENTORY_REF_FROM? refFrom,
  13. Int64? refId,
  14. Int64? familyId,
  15. String? code,
  16. String? internalItemCode,
  17. String? hash,
  18. Int64? quantity,
  19. Int64? quantityRemaining,
  20. Int64? secondaryUomId,
  21. Int64? secondaryQuantity,
  22. Int64? shelfLifeTimestamp,
  23. Int64? warrantyTimestamp,
  24. Int64? storeId,
  25. Int64? storageId,
  26. bool? isQcReportPublic,
  27. Int64? locationId,
  28. String? remainingDimensions,
  29. String? description,
  30. String? shortUrl,
})

Implementation

factory GenericInventory({
  $core.String? entityUuid,
  $1.EmployeeMetadata? metadata,
  $1.INVENTORY_LIFECYCLE? status,
  $fixnum.Int64? storeIntakeAt,
  $fixnum.Int64? consumedOrRejectedAt,
  $fixnum.Int64? reworkStartAt,
  $fixnum.Int64? reworkEndAt,
  $fixnum.Int64? returnedOrScrappedAt,
  $fixnum.Int64? discardedAt,
  $fixnum.Int64? vaultFolderId,
  $fixnum.Int64? parentRefId,
  GENERIC_INVENTORY_REF_FROM? refFrom,
  $fixnum.Int64? refId,
  $fixnum.Int64? familyId,
  $core.String? code,
  $core.String? internalItemCode,
  $core.String? hash,
  $fixnum.Int64? quantity,
  $fixnum.Int64? quantityRemaining,
  $fixnum.Int64? secondaryUomId,
  $fixnum.Int64? secondaryQuantity,
  $fixnum.Int64? shelfLifeTimestamp,
  $fixnum.Int64? warrantyTimestamp,
  $fixnum.Int64? storeId,
  $fixnum.Int64? storageId,
  $core.bool? isQcReportPublic,
  $fixnum.Int64? locationId,
  $core.String? remainingDimensions,
  $core.String? description,
  $core.String? shortUrl,
}) {
  final result = create();
  if (entityUuid != null) result.entityUuid = entityUuid;
  if (metadata != null) result.metadata = metadata;
  if (status != null) result.status = status;
  if (storeIntakeAt != null) result.storeIntakeAt = storeIntakeAt;
  if (consumedOrRejectedAt != null)
    result.consumedOrRejectedAt = consumedOrRejectedAt;
  if (reworkStartAt != null) result.reworkStartAt = reworkStartAt;
  if (reworkEndAt != null) result.reworkEndAt = reworkEndAt;
  if (returnedOrScrappedAt != null)
    result.returnedOrScrappedAt = returnedOrScrappedAt;
  if (discardedAt != null) result.discardedAt = discardedAt;
  if (vaultFolderId != null) result.vaultFolderId = vaultFolderId;
  if (parentRefId != null) result.parentRefId = parentRefId;
  if (refFrom != null) result.refFrom = refFrom;
  if (refId != null) result.refId = refId;
  if (familyId != null) result.familyId = familyId;
  if (code != null) result.code = code;
  if (internalItemCode != null) result.internalItemCode = internalItemCode;
  if (hash != null) result.hash = hash;
  if (quantity != null) result.quantity = quantity;
  if (quantityRemaining != null) result.quantityRemaining = quantityRemaining;
  if (secondaryUomId != null) result.secondaryUomId = secondaryUomId;
  if (secondaryQuantity != null) result.secondaryQuantity = secondaryQuantity;
  if (shelfLifeTimestamp != null)
    result.shelfLifeTimestamp = shelfLifeTimestamp;
  if (warrantyTimestamp != null) result.warrantyTimestamp = warrantyTimestamp;
  if (storeId != null) result.storeId = storeId;
  if (storageId != null) result.storageId = storageId;
  if (isQcReportPublic != null) result.isQcReportPublic = isQcReportPublic;
  if (locationId != null) result.locationId = locationId;
  if (remainingDimensions != null)
    result.remainingDimensions = remainingDimensions;
  if (description != null) result.description = description;
  if (shortUrl != null) result.shortUrl = shortUrl;
  return result;
}