Class: DeleteCollectionsCollectionIDResponsesResponseIDResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDResponsesResponseIDResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1758 1759 1760 1761 1762 1763 |
# File 'lib/schemas.rb', line 1758 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? DeleteCollectionsCollectionIDResponsesResponseIDResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
1765 1766 1767 |
# File 'lib/schemas.rb', line 1765 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1769 1770 1771 1772 1773 |
# File 'lib/schemas.rb', line 1769 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
1775 1776 1777 |
# File 'lib/schemas.rb', line 1775 def to_json( = nil) JSON.generate(to_dynamic, ) end |