Class: PutMocksMockIDBodyMockConfig
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutMocksMockIDBodyMockConfig
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
32413 32414 32415 32416 32417 32418 |
# File 'lib/schemas.rb', line 32413 def self.from_dynamic!(d) d = Types::Hash[d] new( server_response_id: d["serverResponseId"], ) end |
.from_json!(json) ⇒ Object
32420 32421 32422 |
# File 'lib/schemas.rb', line 32420 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
32424 32425 32426 32427 32428 |
# File 'lib/schemas.rb', line 32424 def to_dynamic { "serverResponseId" => server_response_id, } end |
#to_json(options = nil) ⇒ Object
32430 32431 32432 |
# File 'lib/schemas.rb', line 32430 def to_json( = nil) JSON.generate(to_dynamic, ) end |