completeNotificationAction method

Future<String> completeNotificationAction(
  1. String id,
  2. ButtonType action
)

Implementation

Future<String> completeNotificationAction(String id, ButtonType action) async {
  var response = (await _client.post<Map<String, dynamic>>(
      'notifications/$id/complete',
      data: {
        'actionType': action.name,
      }
  )).data!;
  return response['data']['notificationId'];
}