//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using Luban;
using System.Text.Json;


namespace cfg.test
{
public sealed partial class DemoD5 : test.DemoDynamic
{
    public DemoD5(JsonElement _buf)  : base(_buf) 
    {
        Time = test.DateTimeRange.DeserializeDateTimeRange(_buf.GetProperty("time"));
    }

    public static DemoD5 DeserializeDemoD5(JsonElement _buf)
    {
        return new test.DemoD5(_buf);
    }

    public readonly test.DateTimeRange Time;
   
    public const int __ID__ = -2138341744;
    public override int GetTypeId() => __ID__;

    public override void ResolveRef(Tables tables)
    {
        base.ResolveRef(tables);
        Time?.ResolveRef(tables);
    }

    public override string ToString()
    {
        return "{ "
        + "x1:" + X1 + ","
        + "time:" + Time + ","
        + "}";
    }
}

}