Class: GetWorkspacesResponseWorkspacesItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetWorkspacesResponseWorkspacesItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16645 16646 16647 16648 16649 16650 16651 16652 16653 |
# File 'lib/schemas.rb', line 16645 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], get_workspaces_response_workspaces_item_name: d["name"], get_workspaces_response_workspaces_item_type: d["type"], visibility: d["visibility"], ) end |
.from_json!(json) ⇒ Object
16655 16656 16657 |
# File 'lib/schemas.rb', line 16655 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16659 16660 16661 16662 16663 16664 16665 16666 |
# File 'lib/schemas.rb', line 16659 def to_dynamic { "id" => id, "name" => get_workspaces_response_workspaces_item_name, "type" => get_workspaces_response_workspaces_item_type, "visibility" => visibility, } end |
#to_json(options = nil) ⇒ Object
16668 16669 16670 |
# File 'lib/schemas.rb', line 16668 def to_json( = nil) JSON.generate(to_dynamic, ) end |