getAllFromServiceTypeAndPlanAndItem static method
Future<PcoCollection<PcoServicesCustomSlide> >
getAllFromServiceTypeAndPlanAndItem(
- String serviceTypeId,
- String planId,
- String itemId, {
- String? id,
- PcoServicesCustomSlideQuery? query,
Will get a PcoCollection
containing ALL PcoServicesCustomSlide objects (expecting many)
using a path like this: /services/v2/service_types/$serviceTypeId/plans/$planId/items/$itemId/custom_slides
Additional options may be specified by using the query
argument, but some
query options are also available as boolean flags in this function call too.
This function forces the query.getAll
to be true.
Implementation
static Future<PcoCollection<PcoServicesCustomSlide>>
getAllFromServiceTypeAndPlanAndItem(
String serviceTypeId,
String planId,
String itemId, {
String? id,
PcoServicesCustomSlideQuery? query,
}) async {
query ??= PcoServicesCustomSlideQuery();
query.getAll = true;
var url =
'/services/v2/service_types/$serviceTypeId/plans/$planId/items/$itemId/custom_slides';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoServicesCustomSlide>(url,
query: query, apiVersion: kApiVersion);
}