getSettingsApprovalProfile function

Future<ApiResponse<SettingsApprovalProfile>> getSettingsApprovalProfile(
  1. ExsitedClient client,
  2. Object approvalProfileId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/{api_version}/settings/approval_profiles/{approval_profile_id}

Read one approval profile by its ap_ id.

Implementation

Future<ApiResponse<SettingsApprovalProfile>> getSettingsApprovalProfile(
  ExsitedClient client,
  Object approvalProfileId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(ApprovalProfilesUrls.settingsApprovalProfile,
        pathParams: {'approval_profile_id': approvalProfileId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: SettingsApprovalProfile.fromMap);