FusionAuthRESTClient<ReturnType, ErrorReturnType> constructor

FusionAuthRESTClient<ReturnType, ErrorReturnType>(
  1. String host,
  2. HttpClient httpClient
)

Implementation

FusionAuthRESTClient(this.host, this.httpClient) {
  if (ErrorReturnType == Errors) {
    errorResponseHandler =
        defaultErrorResponseHandlerBuilder((d) => Errors.fromJson(d));
  }
}