Class: GetApisAPIIDTasksTaskIDResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDTasksTaskIDResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5905 5906 5907 5908 5909 5910 5911 5912 |
# File 'lib/schemas.rb', line 5905 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], get_apis_api_id_tasks_task_id_response400_type: d["type"], ) end |
.from_json!(json) ⇒ Object
5914 5915 5916 |
# File 'lib/schemas.rb', line 5914 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5918 5919 5920 5921 5922 5923 5924 |
# File 'lib/schemas.rb', line 5918 def to_dynamic { "detail" => detail, "title" => title, "type" => get_apis_api_id_tasks_task_id_response400_type, } end |
#to_json(options = nil) ⇒ Object
5926 5927 5928 |
# File 'lib/schemas.rb', line 5926 def to_json( = nil) JSON.generate(to_dynamic, ) end |