class Vellum::NodeOutputCompiledStringValue
def self.from_json(json_object:)
-
(NodeOutputCompiledStringValue)-
Parameters:
-
json_object(JSON) --
def self.from_json(json_object:) struct = JSON.parse(json_object, object_class: OpenStruct) JSON.parse(json_object) node_output_id = struct.node_output_id value = struct.value new(node_output_id: node_output_id, value: value, additional_properties: struct) end
def self.validate_raw(obj:)
-
(Void)-
Parameters:
-
obj(Object) --
def self.validate_raw(obj:) obj.node_output_id.is_a?(String) != false || raise("Passed value for field obj.node_output_id 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(node_output_id:, value: nil, additional_properties: nil)
-
(NodeOutputCompiledStringValue)-
Parameters:
-
additional_properties(OpenStruct) -- Additional properties unmapped to the current class definition -
value(String) -- -
node_output_id(String) --
def initialize(node_output_id:, value: nil, additional_properties: nil) # @type [String] @node_output_id = node_output_id # @type [String] @value = value # @type [OpenStruct] Additional properties unmapped to the current class definition @additional_properties = additional_properties end
def to_json(*_args)
-
(JSON)-
def to_json(*_args) { "node_output_id": @node_output_id, "value": @value }.to_json end