class Ittybit::Confirmation
def self.from_json(json_object:)
-
(Ittybit::Confirmation)
-
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 = parsed_json["message"] new(message: message, additional_properties: struct) end
def self.validate_raw(obj:)
-
(Void)
-
Parameters:
-
obj
(Object
) --
def self.validate_raw(obj:) obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.") end
def initialize(message: OMIT, additional_properties: nil)
-
(Ittybit::Confirmation)
-
Parameters:
-
additional_properties
(OpenStruct
) -- Additional properties unmapped to the current class definition -
message
(String
) --
def initialize(message: OMIT, additional_properties: nil) @message = message if message != OMIT @additional_properties = additional_properties @_field_set = { "message": message }.reject do |_k, v| v == OMIT end end
def to_json(*_args)
-
(String)
-
def to_json(*_args) @_field_set&.to_json end