Class: GetTagsSlugEntitiesResponse
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- GetTagsSlugEntitiesResponse
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 16368 16369 16370 16371 16372 16373 16374 | # File 'lib/schemas.rb', line 16368 def self.from_dynamic!(d) d = Types::Hash[d] new( data: d["data"] ? GetTagsSlugEntitiesResponseData.from_dynamic!(d["data"]) : nil, get_tags_slug_entities_response_meta: d["meta"] ? GetTagsSlugEntitiesResponseMeta.from_dynamic!(d["meta"]) : nil, ) end | 
.from_json!(json) ⇒ Object
| 16376 16377 16378 | # File 'lib/schemas.rb', line 16376 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 16380 16381 16382 16383 16384 16385 | # File 'lib/schemas.rb', line 16380 def to_dynamic { "data" => data&.to_dynamic, "meta" => &.to_dynamic, } end | 
#to_json(options = nil) ⇒ Object
| 16387 16388 16389 | # File 'lib/schemas.rb', line 16387 def to_json( = nil) JSON.generate(to_dynamic, ) end |