public static Deserialize ( string json ) : |
||
json | string | The JSON string to be deserialized. |
return |
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)); }
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview) { return(GridDataModel.Deserialize(source as string, propertyType.Alias, _config)); }