submit method

  1. @override
Future<SubmitResponse> submit()
override

Implementation

@override
Future<SubmitResponse> submit() async {
  final Map response =
      await _channel.invokeMethod('submitDeviceIntelligence');

  BaseInsights? insights;
  if (response['insights'] != null) {
    insights = _InsightsParser.parseInsights(response['insights']);
  }

  return SubmitResponse(
    message: response['message'],
    eventId: response['eventId'],
    insights: insights,
  );
}