class Pinnacle::CompanyContact
def self.from_json(json_object:)
-
(Pinnacle::CompanyContact)
-
Parameters:
-
json_object
(String
) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) primary_website_url = parsed_json["primaryWebsiteUrl"] primary_website_label = parsed_json["primaryWebsiteLabel"] primary_phone = parsed_json["primaryPhone"] primary_phone_label = parsed_json["primaryPhoneLabel"] primary_email = parsed_json["primaryEmail"] primary_email_label = parsed_json["primaryEmailLabel"] privacy_policy_url = parsed_json["privacyPolicyUrl"] tos_url = parsed_json["tosUrl"] new( primary_website_url: primary_website_url, primary_website_label: primary_website_label, primary_phone: primary_phone, primary_phone_label: primary_phone_label, primary_email: primary_email, primary_email_label: primary_email_label, privacy_policy_url: privacy_policy_url, tos_url: tos_url, additional_properties: struct ) end