logUserActivity method

  1. @override
Future logUserActivity({
  1. required MethodCall call,
})
override

Implementation

@override
Future logUserActivity({required MethodCall call}) async{
  final payload = jsonDecode(call.arguments);
  final activity = NUIUserActivityEntity().toEntity(payload);

  final result = await _getModuleInstance().logUserActivity(userActivity: activity);
  return {
    "success": result.success,
    "message": result.message
  };
}