Custom serialization attribute added to AuditType property
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using Umbraco.Core.Models;
|
||||
|
||||
namespace Umbraco.Web.Models.ContentEditing
|
||||
@@ -21,7 +23,8 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
|
||||
[DataMember(Name = "timestamp")]
|
||||
public DateTime Timestamp { get; set; }
|
||||
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
[DataMember(Name = "logType")]
|
||||
public AuditType LogType { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user