Class: PostApisResponse500
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- PostApisResponse500
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 20412 20413 20414 20415 20416 20417 20418 20419 | # File 'lib/schemas.rb', line 20412 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], post_apis_response500_type: d["type"], ) end | 
.from_json!(json) ⇒ Object
| 20421 20422 20423 | # File 'lib/schemas.rb', line 20421 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 20425 20426 20427 20428 20429 20430 20431 | # File 'lib/schemas.rb', line 20425 def to_dynamic { "detail" => detail, "title" => title, "type" => post_apis_response500_type, } end | 
#to_json(options = nil) ⇒ Object
| 20433 20434 20435 | # File 'lib/schemas.rb', line 20433 def to_json( = nil) JSON.generate(to_dynamic, ) end |