//------------------------------------------------------------------------------
// <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 Foo : Luban.BeanBase
{
    public Foo(JsonElement _buf) 
    {
        Y1 = _buf.GetProperty("y1").GetInt32();
        Y2 = _buf.GetProperty("y2").GetInt32();
        Y3 = _buf.GetProperty("y3").GetInt32();
    }

    public static Foo DeserializeFoo(JsonElement _buf)
    {
        return new test.Foo(_buf);
    }

    public readonly int Y1;
    public readonly int Y2;
    public readonly int Y3;
   
    public const int __ID__ = -1147950774;
    public override int GetTypeId() => __ID__;

    public  void ResolveRef(Tables tables)
    {
        
        
        
    }

    public override string ToString()
    {
        return "{ "
        + "y1:" + Y1 + ","
        + "y2:" + Y2 + ","
        + "y3:" + Y3 + ","
        + "}";
    }
}

}