getJsonBody method
Implementation
Future<Map<String, dynamic>> getJsonBody() async {
Map<String, dynamic> jsonReportBody = {};
String formattedDate = DateTime.now().toString();
jsonReportBody[TBLBeaconConsts.EVENT_TYPE_KEY] = getEventType();
jsonReportBody[TBLBeaconConsts.TIME] = formattedDate;
jsonReportBody[TBLBeaconConsts.APP_VERSION] = await ApplicationDescriptor.getAppVersion();
jsonReportBody[TBLBeaconConsts.APP_ID] = await ApplicationDescriptor.getAppPackageName();
jsonReportBody[TBLBeaconConsts.SDK_VERSION] = await TBLSdkDescriptor.getSdkVersion();
jsonReportBody[TBLBeaconConsts.APP_NAME] = await ApplicationDescriptor.getAppName();
jsonReportBody[TBLBeaconConsts.DEVICE_MODEL] = await DeviceDescriptor.getDeviceModel();
jsonReportBody[TBLBeaconConsts.OS] = await DeviceDescriptor.getDeviceOS();
jsonReportBody[TBLBeaconConsts.OS_VERSION] =
await DeviceDescriptor.getDeviceSystemVersion();
return jsonReportBody;
}