//------------------------------------------------------------------------------
// <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 TestMapper : Luban.BeanBase
{
    public TestMapper(JsonElement _buf) 
    {
        Id = _buf.GetProperty("id").GetInt32();
        AudioType = (AudioType)_buf.GetProperty("audio_type").GetInt32();
        V2 = vec2.Deserializevec2(_buf.GetProperty("v2"));
    }

    public static TestMapper DeserializeTestMapper(JsonElement _buf)
    {
        return new test.TestMapper(_buf);
    }

    public readonly int Id;
    public readonly AudioType AudioType;
    public readonly vec2 V2;
   
    public const int __ID__ = 149110895;
    public override int GetTypeId() => __ID__;

    public  void ResolveRef(Tables tables)
    {
        
        
        
    }

    public override string ToString()
    {
        return "{ "
        + "id:" + Id + ","
        + "audioType:" + AudioType + ","
        + "v2:" + V2 + ","
        + "}";
    }
}

}