fn is_enabled(preferences: &Value, notif_type: NotificationType) -> boolExpand description
Check whether a subscription has a given notification type enabled. Missing keys default to enabled. Non-boolean values are treated as disabled (reject malformed preferences rather than silently enabling).