plugins/push_notification/lib/push_notification_plugin/api_entities.rb
module PushNotificationPlugin::Entities
class DeviceUser < Api::Entities::User
expose :device_token_list, as: :device_tokens
expose :notification_settings do |user, options|
user.notification_settings.hash_flags
end
end
end