Class: PutCollectionsCollectionIDBodyCollectionItemItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDBodyCollectionItemItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29483 29484 29485 29486 29487 29488 29489 29490 |
# File 'lib/schemas.rb', line 29483 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], put_collections_collection_id_body_collection_item_item_name: d["name"], uid: d["uid"], ) end |
.from_json!(json) ⇒ Object
29492 29493 29494 |
# File 'lib/schemas.rb', line 29492 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29496 29497 29498 29499 29500 29501 29502 |
# File 'lib/schemas.rb', line 29496 def to_dynamic { "id" => id, "name" => put_collections_collection_id_body_collection_item_item_name, "uid" => uid, } end |
#to_json(options = nil) ⇒ Object
29504 29505 29506 |
# File 'lib/schemas.rb', line 29504 def to_json( = nil) JSON.generate(to_dynamic, ) end |