profile method

Future<ResponseModel> profile()

Get customer profile

Implementation

Future<ResponseModel> profile() async {
  try {
    String url = '$baseUrl/profile';
    Response? response = await getx(url);
    ResponseModel data = ResponseModel.fromJson(
        json.decode(response.body) as Map<String, dynamic>);
    return Future.value(data);
  } catch (e) {
    return Future.error(e);
  }
}