getSlaInformationById method

Future<SlaInformationDTO> getSlaInformationById({
  1. required String issueIdOrKey,
  2. required int slaMetricId,
})

This method returns the details for an SLA on a customer request.

Permissions required: Agent for the Service Desk containing the queried customer request.

Implementation

Future<SlaInformationDTO> getSlaInformationById(
    {required String issueIdOrKey, required int slaMetricId}) async {
  return SlaInformationDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/request/{issueIdOrKey}/sla/{slaMetricId}',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
      'slaMetricId': '$slaMetricId',
    },
  ));
}