Class: GetWorkspacesResponse401Error
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- GetWorkspacesResponse401Error
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 16706 16707 16708 16709 16710 16711 16712 | # File 'lib/schemas.rb', line 16706 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_workspaces_response401_error_name: d["name"], ) end | 
.from_json!(json) ⇒ Object
| 16714 16715 16716 | # File 'lib/schemas.rb', line 16714 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 16718 16719 16720 16721 16722 16723 | # File 'lib/schemas.rb', line 16718 def to_dynamic { "message" => , "name" => get_workspaces_response401_error_name, } end | 
#to_json(options = nil) ⇒ Object
| 16725 16726 16727 | # File 'lib/schemas.rb', line 16725 def to_json( = nil) JSON.generate(to_dynamic, ) end |