Class: PutApisAPIIDTagsResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDTagsResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28999 29000 29001 29002 29003 29004 |
# File 'lib/schemas.rb', line 28999 def self.from_dynamic!(d) d = Types::Hash[d] new( tags: d["tags"]&.map { |x| PutApisAPIIDTagsResponseTagsItem.from_dynamic!(x) }, ) end |
.from_json!(json) ⇒ Object
29006 29007 29008 |
# File 'lib/schemas.rb', line 29006 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29010 29011 29012 29013 29014 |
# File 'lib/schemas.rb', line 29010 def to_dynamic { "tags" => &.map { |x| x.to_dynamic }, } end |
#to_json(options = nil) ⇒ Object
29016 29017 29018 |
# File 'lib/schemas.rb', line 29016 def to_json( = nil) JSON.generate(to_dynamic, ) end |