Class: PutCollectionsCollectionIDResponseCollection
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponseCollection
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30559 30560 30561 30562 30563 30564 30565 30566 |
# File 'lib/schemas.rb', line 30559 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], put_collections_collection_id_response_collection_name: d["name"], uid: d["uid"], ) end |
.from_json!(json) ⇒ Object
30568 30569 30570 |
# File 'lib/schemas.rb', line 30568 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30572 30573 30574 30575 30576 30577 30578 |
# File 'lib/schemas.rb', line 30572 def to_dynamic { "id" => id, "name" => put_collections_collection_id_response_collection_name, "uid" => uid, } end |
#to_json(options = nil) ⇒ Object
30580 30581 30582 |
# File 'lib/schemas.rb', line 30580 def to_json( = nil) JSON.generate(to_dynamic, ) end |