8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'app/serializers/command_tower/serializers/messaging/preferences/notification_serializer.rb', line 8
def self.serialize(notification)
{
key: notification.key,
label: notification.label,
description: notification.description,
order: notification.order,
configurable: notification.configurable,
mandatory: notification.mandatory,
inboxAvailable: notification.inbox_available,
allowedChannels: notification.allowed_channels,
availableChannels: notification.available_channels,
preferences: {
inboxEnabled: notification.inbox_enabled,
channels: notification.channels,
storedOverridePresent: notification.stored_override_present,
},
}
end
|