Class: GetMocksMockIDCallLogsResponseCallLogsItemResponseHeadersDescription
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetMocksMockIDCallLogsResponseCallLogsItemResponseHeadersDescription
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
10646 10647 10648 10649 10650 10651 10652 |
# File 'lib/schemas.rb', line 10646 def self.from_dynamic!(d) d = Types::Hash[d] new( content: d["content"], get_mocks_mock_id_call_logs_response_call_logs_item_response_headers_description_type: d["type"], ) end |
.from_json!(json) ⇒ Object
10654 10655 10656 |
# File 'lib/schemas.rb', line 10654 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
10658 10659 10660 10661 10662 10663 |
# File 'lib/schemas.rb', line 10658 def to_dynamic { "content" => content, "type" => get_mocks_mock_id_call_logs_response_call_logs_item_response_headers_description_type, } end |
#to_json(options = nil) ⇒ Object
10665 10666 10667 |
# File 'lib/schemas.rb', line 10665 def to_json( = nil) JSON.generate(to_dynamic, ) end |