submit method
Implementation
@override
Future<SubmitResponse> submit() async {
final Map<dynamic, dynamic> response =
await _channel.invokeMethod('submitDeviceIntelligence');
BaseInsights? insights;
if (response['insights'] != null) {
insights = _InsightsParser.parseInsights(response['insights']);
}
return SubmitResponse(
message: _asString(response['message']) ?? '',
eventId: _asString(response['eventId']) ?? '',
insights: insights,
action: _asString(response['action']),
iv: _asString(response['iv']),
);
}