class Pinnacle::CompanyAdditionalWebsitesItem
def self.from_json(json_object:)
-
(Pinnacle::CompanyAdditionalWebsitesItem)
-
Parameters:
-
json_object
(String
) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) url = parsed_json["url"] label = parsed_json["label"] new( url: url, label: label, additional_properties: struct ) end
def self.validate_raw(obj:)
-
(Void)
-
Parameters:
-
obj
(Object
) --
def self.validate_raw(obj:) obj.url&.is_a?(String) != false || raise("Passed value for field obj.url is not the expected type, validation failed.") obj.label&.is_a?(String) != false || raise("Passed value for field obj.label is not the expected type, validation failed.") end
def initialize(url: OMIT, label: OMIT, additional_properties: nil)
-
(Pinnacle::CompanyAdditionalWebsitesItem)
-
Parameters:
-
additional_properties
(OpenStruct
) -- Additional properties unmapped to the current class definition -
label
(String
) -- The label for the additional website -
url
(String
) -- The URL of the additional website
def initialize(url: OMIT, label: OMIT, additional_properties: nil) @url = url if url != OMIT @label = label if label != OMIT @additional_properties = additional_properties @_field_set = { "url": url, "label": label }.reject do |_k, v| v == OMIT end end
def to_json(*_args)
-
(String)
-
def to_json(*_args) @_field_set&.to_json end