CoffeeAuthRequest<T extends CoffeeModel> constructor

CoffeeAuthRequest<T extends CoffeeModel>({
  1. required String baseEndpoint,
  2. required Client httpClient,
  3. required T fromJson(
    1. Map<String, dynamic>
    ),
})

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 of T.

Implementation

CoffeeAuthRequest({
  required String baseEndpoint,
  required http.Client httpClient,
  required this.fromJson,
}) : _httpClient = httpClient, _baseEndpoint = baseEndpoint;