getLabourProfileSessions function
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);