copy method

PlanningCenterApiQuery copy()

returns a copy of this query as a new object this method works because Strings and ints are always copied by value

Implementation

PlanningCenterApiQuery copy() {
  return PlanningCenterApiQuery(
    filter: Set.from(filter),
    include: Set.from(include),
    perPage: perPage,
    pageOffset: pageOffset,
    getAll: getAll,
    order: order,
    where: where.toList(),
    extraParams: {...extraParams},
  );
}