Class: PostCollectionsMergeResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsMergeResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22394 22395 22396 22397 22398 22399 |
# File 'lib/schemas.rb', line 22394 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostCollectionsMergeResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
22401 22402 22403 |
# File 'lib/schemas.rb', line 22401 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22405 22406 22407 22408 22409 |
# File 'lib/schemas.rb', line 22405 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
22411 22412 22413 |
# File 'lib/schemas.rb', line 22411 def to_json( = nil) JSON.generate(to_dynamic, ) end |