put method

Future<SubscriptionModel> put({
  1. required String id,
  2. required SubscriptionModel model,
})

Implementation

Future<SubscriptionModel> put({required String id, required SubscriptionModel model}) async {
  var result = await apiResource.put(id: id, data: model.toMap());
  return SubscriptionModel.fromMap(result);
}