API wrapper for jokeapi.dev
Features
RawJokeApiClient, that performs raw requests to the JokeAPI.JokeApiClient, that performs requests to the JokeAPI.
Usage
To execute requests and get raw responses, use RawJokeApiClient:
final jokeClient = RawJokeApiClient();
final jokeResponse = await jokeClient.getJoke(JokeOptions([JokeCategory.any]));
To execute requests and get responses wrapped with built-in models, use JokeApiClient:
final jokeClient = JokeApiClient();
final joke = await getSingleJoke(SingleJokeOptions([JokeCategory.any]));