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