addCreditsAsync method

Future<SubscriptionModel> addCreditsAsync(
  1. String id,
  2. int quantity
)

Implementation

Future<SubscriptionModel> addCreditsAsync(String id, int quantity) async {
  var result = await apiResource.post(partOfUrl: "/$id/add_credits/$quantity");
  return SubscriptionModel.fromMap(result);
}