changePlan method

Future<SubscriptionModel> changePlan(
  1. String id,
  2. String planIdentifier
)

Implementation

Future<SubscriptionModel> changePlan(String id, String planIdentifier) async {
  var result = await apiResource.post(partOfUrl: "/$id/change_plan/$planIdentifier");
  return SubscriptionModel.fromMap(result);
}