Make the ApiClient class generic, with a single type parameter that matches the type of data received from that API's Stream. For example, to receive List<Event> data, we would use ApiClient<List<Event>> that has a Stream<List<Event>> stream attribute.
Make the
ApiClientclass generic, with a single type parameter that matches the type of data received from that API's Stream. For example, to receiveList<Event>data, we would useApiClient<List<Event>>that has aStream<List<Event>> streamattribute.