StockModel constructor

StockModel({
  1. int? dateOfEntry,
  2. StockAdditionalFields? additionalFields,
  3. String? id,
  4. String? tenantId,
  5. String? facilityId,
  6. String? productVariantId,
  7. String? referenceId,
  8. String? referenceIdType,
  9. String? transactingPartyId,
  10. String? transactingPartyType,
  11. String? quantity,
  12. String? wayBillNumber,
  13. String? receiverId,
  14. String? receiverType,
  15. String? senderId,
  16. String? senderType,
  17. bool? nonRecoverableError = false,
  18. required String clientReferenceId,
  19. int? rowVersion,
  20. String? transactionType,
  21. String? transactionReason,
  22. AuditDetails? auditDetails,
  23. ClientAuditDetails? clientAuditDetails,
  24. bool? isDeleted = false,
})

Implementation

StockModel({
  int? dateOfEntry,
  this.additionalFields,
  this.id,
  this.tenantId,
  this.facilityId,
  this.productVariantId,
  this.referenceId,
  this.referenceIdType,
  this.transactingPartyId,
  this.transactingPartyType,
  this.quantity,
  this.wayBillNumber,
  this.receiverId,
  this.receiverType,
  this.senderId,
  this.senderType,
  this.nonRecoverableError = false,
  required this.clientReferenceId,
  this.rowVersion,
  this.transactionType,
  this.transactionReason,
  super.auditDetails,
  super.clientAuditDetails,
  super.isDeleted = false,
})  : dateOfEntryTime = dateOfEntry == null
          ? null
          : DateTime.fromMillisecondsSinceEpoch(dateOfEntry),
      super();