module Google::Apis::Core::JsonObjectSupport

Public Class Methods

included(base) click to toggle source
# File lib/google/apis/core/json_representation.rb, line 135
def self.included(base)
  base.extend(ClassMethods)
end

Public Instance Methods

to_json(*a) click to toggle source
# 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