Class: PostImportOpenapiResponseCollectionsItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostImportOpenapiResponseCollectionsItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
23489 23490 23491 23492 23493 23494 23495 23496 |
# File 'lib/schemas.rb', line 23489 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], post_import_openapi_response_collections_item_name: d["name"], uid: d["uid"], ) end |
.from_json!(json) ⇒ Object
23498 23499 23500 |
# File 'lib/schemas.rb', line 23498 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
23502 23503 23504 23505 23506 23507 23508 |
# File 'lib/schemas.rb', line 23502 def to_dynamic { "id" => id, "name" => post_import_openapi_response_collections_item_name, "uid" => uid, } end |
#to_json(options = nil) ⇒ Object
23510 23511 23512 |
# File 'lib/schemas.rb', line 23510 def to_json( = nil) JSON.generate(to_dynamic, ) end |