getDeviceProfile method
Implementation
Future<DeviceProfile?> getDeviceProfile(String deviceProfileId,
{RequestConfig? requestConfig}) async {
return nullIfNotFound(
(RequestConfig requestConfig) async {
var response = await _tbClient.get<Map<String, dynamic>>(
'/api/deviceProfile/$deviceProfileId',
options: defaultHttpOptionsFromConfig(requestConfig));
return response.data != null
? DeviceProfile.fromJson(response.data!)
: null;
},
requestConfig: requestConfig,
);
}