Class: PostCollectionsForkCollectionIDResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsForkCollectionIDResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22050 22051 22052 22053 22054 22055 |
# File 'lib/schemas.rb', line 22050 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostCollectionsForkCollectionIDResponse500Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
22057 22058 22059 |
# File 'lib/schemas.rb', line 22057 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22061 22062 22063 22064 22065 |
# File 'lib/schemas.rb', line 22061 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
22067 22068 22069 |
# File 'lib/schemas.rb', line 22067 def to_json( = nil) JSON.generate(to_dynamic, ) end |