getAuthenticationStatus method

Future<ResponseDto<GetAuthenticationStatusResponseDto>> getAuthenticationStatus(
  1. String authToken
)

Implementation

Future<ResponseDto<GetAuthenticationStatusResponseDto>> getAuthenticationStatus(String authToken) async {
  final Map<String, dynamic> response = await AcceptanceApiClient(_stage)
      .getAndParseJson(
      _getAuthStatusPath,
      _apiKey,
      authToken: authToken);

  final ResponseDto<GetAuthenticationStatusResponseDto> responseDto = ResponseDto<
      GetAuthenticationStatusResponseDto>.fromJson(
      response, GetAuthenticationStatusResponseDto.fromJson);

  responseDto.throwApiExceptionIfError();
  return responseDto;
}