public static ThemeInfo FromTheme(Theme options) { if (options == null) { return null; } return options.ToThemeInfo(); }