NotificationsExtensions.Toasts.ToastContent.ConvertToElement C# (CSharp) Method

ConvertToElement() private method

private ConvertToElement ( ) : NotificationsExtensions.Toasts.Element_Toast
return NotificationsExtensions.Toasts.Element_Toast
        internal Element_Toast ConvertToElement()
        {
            var toast = new Element_Toast()
            {
                ActivationType = ActivationType,
                Duration = Duration,
                Launch = Launch,
                Scenario = Scenario
            };

            if (Visual != null)
                toast.Visual = Visual.ConvertToElement();

            if (Audio != null)
                toast.Audio = Audio.ConvertToElement();

            if (Actions != null)
                toast.Actions = ConvertToActionsElement(Actions);

            return toast;
        }