public override object Deserialize( IDictionary<string, object> dictionary,Type type,JavaScriptSerializer serializer )
        {
            if( type == typeof( Skin ) )
            {
                var obj = new Skin();
                if( dictionary.ContainsKey( "name" ) )
                    obj.Name = serializer.ConvertToType<string>(dictionary["name"] );
                if( dictionary.ContainsKey( "resolution" ) )
                    obj.ResolutionJson = serializer.ConvertToType<string>(dictionary["resolution"] );//Resolution
                if( dictionary.ContainsKey( "theme" ) )
                    obj.Theme = serializer.ConvertToType<string>(dictionary["theme"] );
                return obj;
            }

            return null;
        }
Exemple #2
0
 public Includes()
 {
     this.Skin = new Skin();
     this.Fonts = new string[]{};
 }