CoffeeAuthRequest<T extends CoffeeModel> constructor
CoffeeAuthRequest<T extends CoffeeModel> ({})
Creates an instance of CoffeeAuthRequest.
baseEndpoint: The base URL for the API.httpClient: The HTTP client to use for requests.fromJson: A function that converts a map to an instance ofT.
Implementation
CoffeeAuthRequest({
required String baseEndpoint,
required http.Client httpClient,
required this.fromJson,
}) : _httpClient = httpClient, _baseEndpoint = baseEndpoint;