Class: PostMocksMockIDServerResponsesResponse400Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMocksMockIDServerResponsesResponse400Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
24303 24304 24305 24306 24307 24308 24309 24310 |
# File 'lib/schemas.rb', line 24303 def self.from_dynamic!(d) d = Types::Hash[d] new( details: d["details"] ? PostMocksMockIDServerResponsesResponse400ErrorDetails.from_dynamic!(d["details"]) : nil, message: d["message"], post_mocks_mock_id_server_responses_response400_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
24312 24313 24314 |
# File 'lib/schemas.rb', line 24312 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
24316 24317 24318 24319 24320 24321 24322 |
# File 'lib/schemas.rb', line 24316 def to_dynamic { "details" => details&.to_dynamic, "message" => , "name" => post_mocks_mock_id_server_responses_response400_error_name, } end |
#to_json(options = nil) ⇒ Object
24324 24325 24326 |
# File 'lib/schemas.rb', line 24324 def to_json( = nil) JSON.generate(to_dynamic, ) end |