fromEntity static method
Implementation
static Future<CartItemModel?> fromEntity(
String documentID, CartItemEntity? entity) async {
if (entity == null) return null;
return CartItemModel(
documentID: documentID,
amount: entity.amount,
appId: entity.appId ?? '',
);
}