Class: PutCollectionsCollectionIDFoldersFolderIDResponse400ErrorDetails
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDFoldersFolderIDResponse400ErrorDetails
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29734 29735 29736 29737 29738 29739 29740 29741 |
# File 'lib/schemas.rb', line 29734 def self.from_dynamic!(d) d = Types::Hash[d] new( model: d["model"], model_id: d["model_id"], owner: d["owner"], ) end |
.from_json!(json) ⇒ Object
29743 29744 29745 |
# File 'lib/schemas.rb', line 29743 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29747 29748 29749 29750 29751 29752 29753 |
# File 'lib/schemas.rb', line 29747 def to_dynamic { "model" => model, "model_id" => model_id, "owner" => owner, } end |
#to_json(options = nil) ⇒ Object
29755 29756 29757 |
# File 'lib/schemas.rb', line 29755 def to_json( = nil) JSON.generate(to_dynamic, ) end |