import { Notification , NotificationItem , NotificationRequestItem , ObjectSerializer } from "../typings/notification/models" ; class NotificationRequest { public constructor ( json ) { const notification = ObjectSerializer . deserialize ( json , "Notification" ) ; this . notificationItemContainers = notification . notificationItems ; this . live = notification . live ; } public get notificationItems ( ) : NotificationRequestItem [ ] | undefined { if ( ! this . notificationItemContainers ) { return undefined ; } return this . notificationItemContainers . map ( ( container ) : NotificationRequestItem => container . NotificationRequestItem ) ; } public live : string ; public notificationItemContainers : NotificationItem [ ] ; } export default NotificationRequest ;