getSingleFromLabelAndLocationLabel static method
Future<PcoCheckInsLabel?>
getSingleFromLabelAndLocationLabel(
- String labelId,
- String locationLabelId,
- String id, {
- PcoCheckInsLabelQuery? query,
Will get a single PcoCheckInsLabel
object
using a path like this: /check-ins/v2/labels/$labelId/location_labels/$locationLabelId/label/[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<PcoCheckInsLabel?> getSingleFromLabelAndLocationLabel(
String labelId,
String locationLabelId,
String id, {
PcoCheckInsLabelQuery? query,
}) async {
query ??= PcoCheckInsLabelQuery();
var url =
'/check-ins/v2/labels/$labelId/location_labels/$locationLabelId/label/$id';
var retval = await PcoCollection.fromApiCall<PcoCheckInsLabel>(url,
query: query, apiVersion: kApiVersion);
return retval.items.isEmpty ? null : retval.items.first;
}