Class: PostApisAPIIDCollectionsResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostApisAPIIDCollectionsResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19334 19335 19336 19337 19338 19339 19340 19341 |
# File 'lib/schemas.rb', line 19334 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], post_apis_api_id_collections_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
19343 19344 19345 |
# File 'lib/schemas.rb', line 19343 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19347 19348 19349 19350 19351 19352 19353 |
# File 'lib/schemas.rb', line 19347 def to_dynamic { "detail" => detail, "title" => title, "type" => post_apis_api_id_collections_response403_type, } end |
#to_json(options = nil) ⇒ Object
19355 19356 19357 |
# File 'lib/schemas.rb', line 19355 def to_json( = nil) JSON.generate(to_dynamic, ) end |