toEntity static method

Cart toEntity(
  1. CartModel model
)

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(),
  );
}