Class: PutApisAPIIDSchemasSchemaIDFilesFilePathResponse422
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDSchemasSchemaIDFilesFilePathResponse422
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28850 28851 28852 28853 28854 28855 28856 28857 |
# File 'lib/schemas.rb', line 28850 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], put_apis_api_id_schemas_schema_id_files_file_path_response422_type: d["type"], ) end |
.from_json!(json) ⇒ Object
28859 28860 28861 |
# File 'lib/schemas.rb', line 28859 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28863 28864 28865 28866 28867 28868 28869 |
# File 'lib/schemas.rb', line 28863 def to_dynamic { "detail" => detail, "title" => title, "type" => put_apis_api_id_schemas_schema_id_files_file_path_response422_type, } end |
#to_json(options = nil) ⇒ Object
28871 28872 28873 |
# File 'lib/schemas.rb', line 28871 def to_json( = nil) JSON.generate(to_dynamic, ) end |