getCurrentStep method

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

Implementation

Future<PcoCollection<PcoPeopleWorkflowStep>> getCurrentStep(
    {PcoPeopleWorkflowStepQuery? query}) async {
  query ??= PcoPeopleWorkflowStepQuery();
  var url = '$apiEndpoint/current_step';
  return PcoCollection.fromApiCall<PcoPeopleWorkflowStep>(url,
      query: query, apiVersion: apiVersion);
}