getSingleFromCampus static method
Future<PcoPeopleServiceTime?>
getSingleFromCampus(
- String campusId,
- String id, {
- PcoPeopleServiceTimeQuery? query,
Will get a single PcoPeopleServiceTime
object
using a path like this: /people/v2/campuses/$campusId/service_times/[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<PcoPeopleServiceTime?> getSingleFromCampus(
String campusId,
String id, {
PcoPeopleServiceTimeQuery? query,
}) async {
query ??= PcoPeopleServiceTimeQuery();
var url = '/people/v2/campuses/$campusId/service_times/$id';
var retval = await PcoCollection.fromApiCall<PcoPeopleServiceTime>(url,
query: query, apiVersion: kApiVersion);
return retval.items.isEmpty ? null : retval.items.first;
}