toEntity static method
Implementation
static Cart toEntity(CartModel model) {
return Cart(
id: model.id,
userId: model.userId,
date: model.date,
products: model.products
.map((p) => CartProductMapper.toEntity(p))
.toList(),
);
}