class Pinnacle::Send::RcsFallback
def self.from_json(json_object:)
-
(Pinnacle::Send::RcsFallback)
-
Parameters:
-
json_object
(String
) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) from = parsed_json["from"] text = parsed_json["text"] media_urls = parsed_json["mediaUrls"] new( from: from, text: text, media_urls: media_urls, additional_properties: struct ) end