class Ittybit::Automations::AutomationsUpdateRequestTriggerConditionsItem
def self.from_json(json_object:)
-
(Ittybit::Automations::AutomationsUpdateRequestTriggerConditionsItem)
-
Parameters:
-
json_object
(String
) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) parsed_json = JSON.parse(json_object) prop = parsed_json["prop"] value = parsed_json["value"] new( prop: prop, value: value, additional_properties: struct ) end
def self.validate_raw(obj:)
-
(Void)
-
Parameters:
-
obj
(Object
) --
def self.validate_raw(obj:) obj.prop.is_a?(String) != false || raise("Passed value for field obj.prop is not the expected type, validation failed.") obj.value.is_a?(String) != false || raise("Passed value for field obj.value is not the expected type, validation failed.") end
def initialize(prop:, value:, additional_properties: nil)
-
(Ittybit::Automations::AutomationsUpdateRequestTriggerConditionsItem)
-
Parameters:
-
additional_properties
(OpenStruct
) -- Additional properties unmapped to the current class definition -
value
(String
) -- -
prop
(String
) --
def initialize(prop:, value:, additional_properties: nil) @prop = prop @value = value @additional_properties = additional_properties @_field_set = { "prop": prop, "value": value } end
def to_json(*_args)
-
(String)
-
def to_json(*_args) @_field_set&.to_json end