getPortal method

Future<GetPortalResponse> getPortal({
  1. required String portalId,
})

Gets a portal.

May throw AccessDeniedException. May throw BadRequestException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter portalId : The portal identifier.

Implementation

Future<GetPortalResponse> getPortal({
  required String portalId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v2/portals/${Uri.encodeComponent(portalId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetPortalResponse.fromJson(response);
}