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