getSingle static method
Will get a single PcoServicesSeries
object
using a path like this: /services/v2/series/[id]
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.
Implementation
static Future<PcoServicesSeries?> getSingle(
String id, {
PcoServicesSeriesQuery? query,
}) async {
query ??= PcoServicesSeriesQuery();
var url = '/services/v2/series/$id';
var retval = await PcoCollection.fromApiCall<PcoServicesSeries>(url,
query: query, apiVersion: kApiVersion);
return retval.items.isEmpty ? null : retval.items.first;
}