Class: PostWorkspacesResponseWorkspace
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostWorkspacesResponseWorkspace
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
27756 27757 27758 27759 27760 27761 27762 |
# File 'lib/schemas.rb', line 27756 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], post_workspaces_response_workspace_name: d["name"], ) end |
.from_json!(json) ⇒ Object
27764 27765 27766 |
# File 'lib/schemas.rb', line 27764 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
27768 27769 27770 27771 27772 27773 |
# File 'lib/schemas.rb', line 27768 def to_dynamic { "id" => id, "name" => post_workspaces_response_workspace_name, } end |
#to_json(options = nil) ⇒ Object
27775 27776 27777 |
# File 'lib/schemas.rb', line 27775 def to_json( = nil) JSON.generate(to_dynamic, ) end |