getSingle static method
Future<PcoServicesReportTemplate?>
getSingle(
- String id, {
- PcoServicesReportTemplateQuery? query,
Will get a single PcoServicesReportTemplate
object
using a path like this: /services/v2/report_templates/[id]
Available Query Filters:
matrix
people
plans
without_defaults
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<PcoServicesReportTemplate?> getSingle(
String id, {
PcoServicesReportTemplateQuery? query,
}) async {
query ??= PcoServicesReportTemplateQuery();
var url = '/services/v2/report_templates/$id';
var retval = await PcoCollection.fromApiCall<PcoServicesReportTemplate>(url,
query: query, apiVersion: kApiVersion);
return retval.items.isEmpty ? null : retval.items.first;
}