getServiceName static method

String getServiceName(
  1. int id
)

Retrieve the name of a service given its ID.

Parameters:

  • IN id The ID of the service.

Returns

  • The name of the service corresponding to the provided ID.

Throws:

  • An exception if it fails.

Implementation

static String getServiceName(int id) {
  final OperationResult resultString = staticMethod(
    'Debug',
    'getServiceName',
    args: id,
  );

  return resultString['result'];
}