getLabour function

Future<ApiResponse<Labour>> getLabour(
  1. ExsitedClient client,
  2. Object labourUuid, {
  3. Map<String, Object?>? queryParams,
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/labours/{labour_uuid}

Implementation

Future<ApiResponse<Labour>> getLabour(
  ExsitedClient client,
  Object labourUuid, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(LaboursUrls.labour,
        pathParams: {'labour_uuid': labourUuid},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: Labour.fromMap);