Class: PutApisAPIIDCollectionsCollectionIDSyncWithSchemaTasksResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDCollectionsCollectionIDSyncWithSchemaTasksResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28085 28086 28087 28088 28089 28090 |
# File 'lib/schemas.rb', line 28085 def self.from_dynamic!(d) d = Types::Hash[d] new( task_id: d["taskId"], ) end |
.from_json!(json) ⇒ Object
28092 28093 28094 |
# File 'lib/schemas.rb', line 28092 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28096 28097 28098 28099 28100 |
# File 'lib/schemas.rb', line 28096 def to_dynamic { "taskId" => task_id, } end |
#to_json(options = nil) ⇒ Object
28102 28103 28104 |
# File 'lib/schemas.rb', line 28102 def to_json( = nil) JSON.generate(to_dynamic, ) end |