Class: PutApisAPIIDCollectionsCollectionIDSyncWithSchemaTasksResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDCollectionsCollectionIDSyncWithSchemaTasksResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28202 28203 28204 28205 28206 28207 28208 28209 |
# File 'lib/schemas.rb', line 28202 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], title: d["title"], put_apis_api_id_collections_collection_id_sync_with_schema_tasks_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
28211 28212 28213 |
# File 'lib/schemas.rb', line 28211 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28215 28216 28217 28218 28219 28220 28221 |
# File 'lib/schemas.rb', line 28215 def to_dynamic { "detail" => detail, "title" => title, "type" => put_apis_api_id_collections_collection_id_sync_with_schema_tasks_response403_type, } end |
#to_json(options = nil) ⇒ Object
28223 28224 28225 |
# File 'lib/schemas.rb', line 28223 def to_json( = nil) JSON.generate(to_dynamic, ) end |