Class: PutCollectionsCollectionIDResponsesResponseIDResponse400ErrorDetails
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDResponse400ErrorDetails
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31140 31141 31142 31143 31144 31145 31146 31147 |
# File 'lib/schemas.rb', line 31140 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
31149 31150 31151 |
# File 'lib/schemas.rb', line 31149 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31153 31154 31155 31156 31157 31158 31159 |
# File 'lib/schemas.rb', line 31153 def to_dynamic { "model" => model, "model_id" => model_id, "owner" => owner, } end |
#to_json(options = nil) ⇒ Object
31161 31162 31163 |
# File 'lib/schemas.rb', line 31161 def to_json( = nil) JSON.generate(to_dynamic, ) end |