DeviceApi constructor
Constructs a DeviceApi instance.
dio is the Dio client for making HTTP requests.
baseUrl is the base URL of the API.
apiKey is the API key used for authentication.
Implementation
const DeviceApi({
required Dio dio,
required String baseUrl,
required String apiKey,
}) : _dio = dio,
_apiKey = apiKey,
_baseUrl = baseUrl;