getLabourProfileSessions function

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

GET /api/{api_version}/labour_profiles/{labour_profile_id}/sessions

List a labour profile's sessions.

Implementation

Future<ApiResponse<LabourProfileSessionList>> getLabourProfileSessions(
  ExsitedClient client,
  Object labourProfileId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(LaboursUrls.labourProfileSessions,
        pathParams: {'labour_profile_id': labourProfileId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: LabourProfileSessionList.fromMap);