Class: PostWorkspacesResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostWorkspacesResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27931 27932 27933 27934 27935 27936 |
# File 'lib/schemas.rb', line 27931 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostWorkspacesResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
27938 27939 27940 |
# File 'lib/schemas.rb', line 27938 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
27942 27943 27944 27945 27946 |
# File 'lib/schemas.rb', line 27942 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
27948 27949 27950 |
# File 'lib/schemas.rb', line 27948 def to_json( = nil) JSON.generate(to_dynamic, ) end |