Class: PutApisAPIIDCollectionsCollectionIDSyncWithSchemaTasksResponse422
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDCollectionsCollectionIDSyncWithSchemaTasksResponse422
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
28276 28277 28278 28279 28280 28281 28282 28283 |
# File 'lib/schemas.rb', line 28276 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_response422_type: d["type"], ) end |
.from_json!(json) ⇒ Object
28285 28286 28287 |
# File 'lib/schemas.rb', line 28285 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
28289 28290 28291 28292 28293 28294 28295 |
# File 'lib/schemas.rb', line 28289 def to_dynamic { "detail" => detail, "title" => title, "type" => put_apis_api_id_collections_collection_id_sync_with_schema_tasks_response422_type, } end |
#to_json(options = nil) ⇒ Object
28297 28298 28299 |
# File 'lib/schemas.rb', line 28297 def to_json( = nil) JSON.generate(to_dynamic, ) end |