refact:modified adding debugPrint in response(data)
This commit is contained in:
parent
b988933413
commit
b997980f1c
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
import 'package:rijig_mobile/core/api/api_services.dart';
|
import 'package:rijig_mobile/core/api/api_services.dart';
|
||||||
import 'package:rijig_mobile/features/cart/model/cartitem_model.dart';
|
import 'package:rijig_mobile/features/cart/model/cartitem_model.dart';
|
||||||
|
|
||||||
|
@ -12,6 +13,7 @@ class CartService {
|
||||||
|
|
||||||
Future<CartResponse> getCart() async {
|
Future<CartResponse> getCart() async {
|
||||||
final response = await _https.get("/cart");
|
final response = await _https.get("/cart");
|
||||||
|
debugPrint(response);
|
||||||
return CartResponse.fromJson(response['data']);
|
return CartResponse.fromJson(response['data']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue