deactivatePlan method

Future<void> deactivatePlan({
  1. required String id,
})

Implementation

Future<void> deactivatePlan({
  required String id,
})async{
  String response = await SexyAPI(
    url: _url,
    parameters: {},
    path: "/v1/billing/plans/$id/deactivate",
  ).post(
    headers: {
      "Authorization" : "Bearer ${accessToken.access_token}",
      "Content-Type" : "application/json",
    },
    body: null,
  );
  if(response.isNotEmpty){
    throw response;
  }
}