Class: PostWorkspacesResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostWorkspacesResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28020 28021 28022 28023 28024 28025 |
# File 'lib/schemas.rb', line 28020 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostWorkspacesResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
28027 28028 28029 |
# File 'lib/schemas.rb', line 28027 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28031 28032 28033 28034 28035 |
# File 'lib/schemas.rb', line 28031 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
28037 28038 28039 |
# File 'lib/schemas.rb', line 28037 def to_json( = nil) JSON.generate(to_dynamic, ) end |