Use RelatedLink class instead of weird extra inline class, convert UDI values
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using Umbraco.Core.Models;
|
||||
|
||||
namespace Umbraco.Web.Models
|
||||
{
|
||||
@@ -14,5 +15,7 @@ namespace Umbraco.Web.Models
|
||||
public bool IsInternal { get; set; }
|
||||
[JsonProperty("type")]
|
||||
public RelatedLinkType Type { get; set; }
|
||||
[JsonProperty("content")]
|
||||
public IPublishedContent Content { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user