getLabourProfile function

Future<ApiResponse<LabourProfileView>> getLabourProfile(
  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}

Implementation

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