Module: Google::Apis::Core::JsonObjectSupport

Defined in:
lib/google/apis/core/json_representation.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#to_json(*a) ⇒ Object



146
147
148
149
# File 'lib/google/apis/core/json_representation.rb', line 146

def to_json(*a)
  representation = self.class.const_get(:Representation)
  representation.new(self).to_hash(user_options: { skip_undefined: true }).to_json(*a)
end