class Pinnacle::Company::CompanyUpdateResponse
def self.from_json(json_object:)
-
(Pinnacle::Company::CompanyUpdateResponse)
-
Parameters:
-
json_object
(String
) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) if parsed_json["brand"].nil? brand = nil else brand = parsed_json["brand"].to_json brand = Pinnacle::Company::CompanyUpdateResponseBrand.from_json(json_object: brand) end new(brand: brand, additional_properties: struct) end
def self.validate_raw(obj:)
-
(Void)
-
Parameters:
-
obj
(Object
) --
def self.validate_raw(obj:) Pinnacle::Company::CompanyUpdateResponseBrand.validate_raw(obj: obj.brand) end
def initialize(brand:, additional_properties: nil)
-
(Pinnacle::Company::CompanyUpdateResponse)
-
Parameters:
-
additional_properties
(OpenStruct
) -- Additional properties unmapped to the current class definition -
brand
(Pinnacle::Company::CompanyUpdateResponseBrand
) --
def initialize(brand:, additional_properties: nil) @brand = brand @additional_properties = additional_properties @_field_set = { "brand": brand } end
def to_json(*_args)
-
(String)
-
def to_json(*_args) @_field_set&.to_json end