checkUpdateApplication method
Check update application
Implementation
Future<ResponseModel> checkUpdateApplication(ApplicationInput body) async {
try {
String url = '$baseUrl/device/check-update';
Response? response = await postx(url, body: json.encode(body));
ResponseModel data =
ResponseModel.fromJson(json.decode(response.toString()));
data.data = ApplicationOutput(
isForceUpdate: data.data['isForceUpdate'],
latestVersion: data.data['latestVersion']);
return Future.value(data);
} catch (e) {
return Future.error(e);
}
}