showPlanDetails method
Implementation
Future<SubscriptionPlan> showPlanDetails({
required String id,
})async{
String response = await SexyAPI(
url: _url,
path: "/v1/billing/plans/$id",
parameters: {}
).get(
headers: {
"Authorization" : "Bearer ${accessToken.access_token}",
"Content-Type" : "application/json",
},
);
try{
return SubscriptionPlan.parse(response);
}catch(err){
throw response;
}
}