fromResponse static method

List<CartEntity> fromResponse({
  1. required CartsResponse response,
})

Implementation

static List<CartEntity> fromResponse({
  required CartsResponse response,
}) =>
    response.carts
        ?.map(
          (CartResponse cartResponse) => CartMapper.fromResponse(
            response: cartResponse,
          ),
        )
        .toList() ??
    <CartEntity>[];