// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema;

///<summary>
/// JSON object value
/// See <a href="https://corefork.telegram.org/constructor/jsonObject" />
///</summary>
[TlObject(0x99c1d49d)]
public sealed class TJsonObject : IJSONValue
{
    public uint ConstructorId => 0x99c1d49d;
    ///<summary>
    /// Values
    ///</summary>
    public TVector<MyTelegram.Schema.IJSONObjectValue> Value { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Value);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Value = buffer.Read<TVector<MyTelegram.Schema.IJSONObjectValue>>();
    }
}