class Pinnacle::Send::SendRcsResponse

def self.from_json(json_object:)

Returns:
  • (Pinnacle::Send::SendRcsResponse) -

Parameters:
  • json_object (String) --
def self.from_json(json_object:)
  struct = JSON.parse(json_object, object_class: OpenStruct)
  parsed_json = JSON.parse(json_object)
  message_id = parsed_json["messageId"]
  message = parsed_json["message"]
  new(
    message_id: message_id,
    message: message,
    additional_properties: struct
  )
end