Class: PutApisAPIIDTagsResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDTagsResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29036 29037 29038 29039 29040 29041 29042 29043 29044 |
# File 'lib/schemas.rb', line 29036 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], status: d["status"], title: d["title"], put_apis_api_id_tags_response400_type: d["type"], ) end |
.from_json!(json) ⇒ Object
29046 29047 29048 |
# File 'lib/schemas.rb', line 29046 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29050 29051 29052 29053 29054 29055 29056 29057 |
# File 'lib/schemas.rb', line 29050 def to_dynamic { "detail" => detail, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
29059 29060 29061 |
# File 'lib/schemas.rb', line 29059 def to_json( = nil) JSON.generate(to_dynamic, ) end |