getPrimaryCampus method

Future<PcoCollection<PcoGivingCampus>> getPrimaryCampus({
  1. PcoGivingCampusQuery? query,
})

Will get a collection of PcoGivingCampus objects (expecting one) using a path like this: https://api.planningcenteronline.com/giving/v2/people/1/primary_campus

Implementation

Future<PcoCollection<PcoGivingCampus>> getPrimaryCampus(
    {PcoGivingCampusQuery? query}) async {
  query ??= PcoGivingCampusQuery();
  var url = '$apiEndpoint/primary_campus';
  return PcoCollection.fromApiCall<PcoGivingCampus>(url,
      query: query, apiVersion: apiVersion);
}