getDefaultAssignee method

Future<PcoCollection<PcoPeoplePerson>> getDefaultAssignee({
  1. PcoPeoplePersonQuery? query,
})

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

Implementation

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