Deserialize() public static method

Deserializes the specified JSON string into an instance of GridDataModel.
public static Deserialize ( string json ) : GridDataModel
json string The JSON string to be deserialized.
return GridDataModel
        public object ConvertSourceToObject(PublishedPropertyType propertyType, object source, bool preview)
        {
            // Get the value as a string
            string str = source as string;

            // Deserialize the string
            return(GridDataModel.Deserialize(str, propertyType.PropertyTypeAlias) ?? GridDataModel.GetEmptyModel(propertyType.PropertyTypeAlias));
        }
Ejemplo n.º 2
0
 public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
 {
     return(GridDataModel.Deserialize(source as string, propertyType.Alias, _config));
 }