Class: CreatePanWorkspaceWorkspace
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- CreatePanWorkspaceWorkspace
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
36279 36280 36281 36282 36283 36284 36285 |
# File 'lib/schemas.rb', line 36279 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d.fetch("id"), parent_folder_id: d.fetch("parentFolderId"), ) end |
.from_json!(json) ⇒ Object
36287 36288 36289 |
# File 'lib/schemas.rb', line 36287 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
36291 36292 36293 36294 36295 36296 |
# File 'lib/schemas.rb', line 36291 def to_dynamic { "id" => id, "parentFolderId" => parent_folder_id, } end |
#to_json(options = nil) ⇒ Object
36298 36299 36300 |
# File 'lib/schemas.rb', line 36298 def to_json( = nil) JSON.generate(to_dynamic, ) end |