registerDevice method
Register device
Implementation
Future<ResponseModel> registerDevice(ApplicationInput body) async {
try {
String url = '$baseUrl/device';
Response? response = await postx(url, body: json.encode(body));
ResponseModel data =
ResponseModel.fromJson(json.decode(response.toString()));
return Future.value(data);
} catch (e) {
return Future.error(e);
}
}