Class: UpdatePanAPIAPI

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



36792
36793
36794
36795
36796
36797
# File 'lib/schemas.rb', line 36792

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

.from_json!(json) ⇒ Object



36799
36800
36801
# File 'lib/schemas.rb', line 36799

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

Instance Method Details

#to_dynamicObject



36803
36804
36805
36806
36807
# File 'lib/schemas.rb', line 36803

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

#to_json(options = nil) ⇒ Object



36809
36810
36811
# File 'lib/schemas.rb', line 36809

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