Class: GetCollectionsCollectionIDTransformationsResponse

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



8787
8788
8789
8790
8791
8792
# File 'lib/schemas.rb', line 8787

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

.from_json!(json) ⇒ Object



8794
8795
8796
# File 'lib/schemas.rb', line 8794

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

Instance Method Details

#to_dynamicObject



8798
8799
8800
8801
8802
# File 'lib/schemas.rb', line 8798

def to_dynamic
  {
    "output" => output,
  }
end

#to_json(options = nil) ⇒ Object



8804
8805
8806
# File 'lib/schemas.rb', line 8804

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