Custom serialization attribute added to AuditType property

This commit is contained in:
Robert
2017-09-19 11:49:32 +02:00
parent a74c4433f7
commit 116e53e07d

View File

@@ -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; }