forked from BigfootDev/flatbuffers
support json serialization
This commit is contained in:
@@ -78,6 +78,10 @@ public struct Referrable : IFlatbufferObject
|
||||
|
||||
public class ReferrableT
|
||||
{
|
||||
#if ENABLE_JSON_SERIALIZATION
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[Newtonsoft.Json.JsonIgnore()]
|
||||
#endif
|
||||
public ulong Id { get; set; }
|
||||
|
||||
public ReferrableT() {
|
||||
|
||||
Reference in New Issue
Block a user