Method: Api::RequestDebug#as_json

Defined in:
lib/sc2ai/protocol/sc2api_pb.rb

#as_json(options = {}) ⇒ Object



37071
37072
37073
37074
37075
37076
37077
37078
37079
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 37071

def as_json(options = {})
  result = {}

  tmp_debug = @debug.map { |v| v.as_json(options) }

  result["debug"] = tmp_debug if !options[:compact] || tmp_debug.any?

  result
end