Class: GetApisAPIIDTasksTaskIDResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDTasksTaskIDResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 |
# File 'lib/schemas.rb', line 5862 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], details: d["details"], id: d["id"], get_apis_api_id_tasks_task_id_response_meta: d["meta"] ? GetApisAPIIDTasksTaskIDResponseMeta.from_dynamic!(d["meta"]) : nil, status: d["status"], updated_at: d["updatedAt"], ) end |
.from_json!(json) ⇒ Object
5874 5875 5876 |
# File 'lib/schemas.rb', line 5874 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 |
# File 'lib/schemas.rb', line 5878 def to_dynamic { "createdAt" => created_at, "details" => details, "id" => id, "meta" => &.to_dynamic, "status" => status, "updatedAt" => updated_at, } end |
#to_json(options = nil) ⇒ Object
5889 5890 5891 |
# File 'lib/schemas.rb', line 5889 def to_json( = nil) JSON.generate(to_dynamic, ) end |