//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Luban; using System.Text.Json; namespace cfg.test { public sealed partial class TestRow : Luban.BeanBase { public TestRow(JsonElement _buf) { X = _buf.GetProperty("x").GetInt32(); Y = _buf.GetProperty("y").GetBoolean(); Z = _buf.GetProperty("z").GetString(); A = test.Test3.DeserializeTest3(_buf.GetProperty("a")); { var __json0 = _buf.GetProperty("b"); B = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); B.Add(__v0); } } } public static TestRow DeserializeTestRow(JsonElement _buf) { return new test.TestRow(_buf); } public readonly int X; public readonly bool Y; public readonly string Z; public readonly test.Test3 A; public readonly System.Collections.Generic.List B; public const int __ID__ = -543222164; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { A?.ResolveRef(tables); } public override string ToString() { return "{ " + "x:" + X + "," + "y:" + Y + "," + "z:" + Z + "," + "a:" + A + "," + "b:" + Luban.StringUtil.CollectionToString(B) + "," + "}"; } } }