getLabourProfileSession function

Future<ApiResponse<LabourProfileSessionView>> getLabourProfileSession(
  1. ExsitedClient client,
  2. Object labourProfileId,
  3. Object sessionId, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

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

Get one labour profile session.

Implementation

Future<ApiResponse<LabourProfileSessionView>> getLabourProfileSession(
  ExsitedClient client,
  Object labourProfileId,
  Object sessionId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(LaboursUrls.labourProfileSession,
        pathParams: {
          'labour_profile_id': labourProfileId,
          'session_id': sessionId
        },
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: LabourProfileSessionView.fromMap);