Class: UpdatePanWorkspaceWorkspace

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



36996
36997
36998
36999
37000
37001
# File 'lib/schemas.rb', line 36996

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    parent_folder_id: d["parentFolderId"],
  )
end

.from_json!(json) ⇒ Object



37003
37004
37005
# File 'lib/schemas.rb', line 37003

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



37007
37008
37009
37010
37011
# File 'lib/schemas.rb', line 37007

def to_dynamic
  {
    "parentFolderId" => parent_folder_id,
  }
end

#to_json(options = nil) ⇒ Object



37013
37014
37015
# File 'lib/schemas.rb', line 37013

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end