Class: GetWorkspacesResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetWorkspacesResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16733 16734 16735 16736 16737 16738 |
# File 'lib/schemas.rb', line 16733 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetWorkspacesResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
16740 16741 16742 |
# File 'lib/schemas.rb', line 16740 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16744 16745 16746 16747 16748 |
# File 'lib/schemas.rb', line 16744 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
16750 16751 16752 |
# File 'lib/schemas.rb', line 16750 def to_json( = nil) JSON.generate(to_dynamic, ) end |