Class: PostWorkspacesResponse404Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostWorkspacesResponse404Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27904 27905 27906 27907 27908 27909 27910 |
# File 'lib/schemas.rb', line 27904 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_workspaces_response404_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
27912 27913 27914 |
# File 'lib/schemas.rb', line 27912 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
27916 27917 27918 27919 27920 27921 |
# File 'lib/schemas.rb', line 27916 def to_dynamic { "message" => , "name" => post_workspaces_response404_error_name, } end |
#to_json(options = nil) ⇒ Object
27923 27924 27925 |
# File 'lib/schemas.rb', line 27923 def to_json( = nil) JSON.generate(to_dynamic, ) end |