//------------------------------------------------------------------------------ // // 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 SimpleJSON; namespace cfg { public sealed partial class FormulaItem : Luban.BeanBase { public FormulaItem(JSONNode _buf) { { if(!_buf["materialType"].IsNumber) { throw new SerializationException(); } MaterialType = (BillItem.BILL_TYPE)_buf["materialType"].AsInt; } { if(!_buf["materialAmount"].IsNumber) { throw new SerializationException(); } MaterialAmount = _buf["materialAmount"]; } } public static FormulaItem DeserializeFormulaItem(JSONNode _buf) { return new FormulaItem(_buf); } public readonly BillItem.BILL_TYPE MaterialType; public readonly int MaterialAmount; public const int __ID__ = -826751623; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "materialType:" + MaterialType + "," + "materialAmount:" + MaterialAmount + "," + "}"; } } }