getPreviousPlan method

Future<PcoCollection<PcoServicesPlan>> getPreviousPlan({
  1. PcoServicesPlanQuery? query,
})

Will get a collection of PcoServicesPlan objects (expecting one) using a path like this: https://api.planningcenteronline.com/services/v2/service_types/1/plans/1/previous_plan

Implementation

Future<PcoCollection<PcoServicesPlan>> getPreviousPlan(
    {PcoServicesPlanQuery? query}) async {
  query ??= PcoServicesPlanQuery();
  var url = '$apiEndpoint/previous_plan';
  return PcoCollection.fromApiCall<PcoServicesPlan>(url,
      query: query, apiVersion: apiVersion);
}