getAllFromServiceTypeAndPlan static method
Future<PcoCollection<PcoServicesSeries> >
getAllFromServiceTypeAndPlan(
- String serviceTypeId,
- String planId, {
- String? id,
- PcoServicesSeriesQuery? query,
Will get a PcoCollection
containing ALL PcoServicesSeries objects (expecting many)
using a path like this: /services/v2/service_types/$serviceTypeId/plans/$planId/series
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<PcoServicesSeries>> getAllFromServiceTypeAndPlan(
String serviceTypeId,
String planId, {
String? id,
PcoServicesSeriesQuery? query,
}) async {
query ??= PcoServicesSeriesQuery();
query.getAll = true;
var url = '/services/v2/service_types/$serviceTypeId/plans/$planId/series';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoServicesSeries>(url,
query: query, apiVersion: kApiVersion);
}