Fixed inventory items photo thumbnail issue
This commit is contained in:
@@ -21,6 +21,7 @@ class InventoryItem {
|
||||
final int? vendorId;
|
||||
final int? branchId;
|
||||
final String? purchaseRef;
|
||||
final String? photoUrl;
|
||||
final String? status;
|
||||
final DateTime? createdAt;
|
||||
|
||||
@@ -47,6 +48,7 @@ class InventoryItem {
|
||||
this.vendorId,
|
||||
this.branchId,
|
||||
this.purchaseRef,
|
||||
this.photoUrl,
|
||||
this.status,
|
||||
this.createdAt,
|
||||
});
|
||||
@@ -75,6 +77,7 @@ class InventoryItem {
|
||||
vendorId: json['vendorId'],
|
||||
branchId: json['branchId'],
|
||||
purchaseRef: json['purchaseRef'],
|
||||
photoUrl: json['photoUrl'] ?? json['photo_url'],
|
||||
status: json['status'],
|
||||
createdAt: json['createdAt'] != null ? DateTime.parse(json['createdAt']) : null,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user