getPerson method

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

Implementation

Future<PcoCollection<PcoPeoplePerson>> getPerson(
    {PcoPeoplePersonQuery? query}) async {
  query ??= PcoPeoplePersonQuery();
  var url = '$apiEndpoint/person';
  return PcoCollection.fromApiCall<PcoPeoplePerson>(url,
      query: query, apiVersion: apiVersion);
}