getCommercial method
Implementation
Future<Commercial?> getCommercial() async {
final req = await HttpRequest().httpRequest(
HttpIntent("commercial", {}), context: context, "Carico commerciale...",
method: HttpMethod.get, dialog: dialog);
if (!elaborateResponse(req)) {
return null;
}
try {
return Commercial.fromJson(req.response["commercial"]);
} catch (e) {
return null;
}
}