Class: DeleteWorkspacesWorkspaceIDResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteWorkspacesWorkspaceIDResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
4101 4102 4103 4104 4105 4106 |
# File 'lib/schemas.rb', line 4101 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? DeleteWorkspacesWorkspaceIDResponse400Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
4108 4109 4110 |
# File 'lib/schemas.rb', line 4108 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
4112 4113 4114 4115 4116 |
# File 'lib/schemas.rb', line 4112 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
4118 4119 4120 |
# File 'lib/schemas.rb', line 4118 def to_json( = nil) JSON.generate(to_dynamic, ) end |