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

def self.validate_raw(obj:)

Returns:
  • (Void) -

Parameters:
  • obj (Object) --
def self.validate_raw(obj:)
  obj.message_id.is_a?(String) != false || raise("Passed value for field obj.message_id is not the expected type, validation failed.")
  obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
end

def initialize(message_id:, message:, additional_properties: nil)

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

Parameters:
  • additional_properties (OpenStruct) -- Additional properties unmapped to the current class definition
  • message (String) -- A message indicating the status of the sent message.
  • message_id (String) -- The unique ID of the sent message.
def initialize(message_id:, message:, additional_properties: nil)
  @message_id = message_id
  @message = message
  @additional_properties = additional_properties
  @_field_set = { "messageId": message_id, "message": message }
end

def to_json(*_args)

Returns:
  • (String) -
def to_json(*_args)
  @_field_set&.to_json
end