unRegisterDevice method
Unregister device
Implementation
Future<ResponseModel> unRegisterDevice() async {
try {
String url = '$baseUrl/device';
Response? response = await deletex(url);
ResponseModel data =
ResponseModel.fromJson(json.decode(response.toString()));
return Future.value(data);
} catch (e) {
return Future.error(e);
}
}