class Spoom::LSP::Message

The language server protocol always uses ‘“2.0”` as the `jsonrpc` version.
A general message as defined by JSON-RPC.

def as_json

: -> Hash[untyped, untyped]
def as_json
  instance_variables.each_with_object({}) do |var, obj|
    val = instance_variable_get(var)
    obj[var.to_s.delete("@")] = val if val
  end
end

def initialize

: -> void
def initialize
  @jsonrpc = "2.0" #: String
end

def to_json(*args)

: (*untyped args) -> String
def to_json(*args)
  T.unsafe(as_json).to_json(*args)
end