Class: PutApisAPIIDTagsResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutApisAPIIDTagsResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
29079 29080 29081 29082 29083 29084 29085 29086 29087 |
# File 'lib/schemas.rb', line 29079 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], status: d["status"], title: d["title"], put_apis_api_id_tags_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
29089 29090 29091 |
# File 'lib/schemas.rb', line 29089 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
29093 29094 29095 29096 29097 29098 29099 29100 |
# File 'lib/schemas.rb', line 29093 def to_dynamic { "detail" => detail, "status" => status, "title" => title, "type" => , } end |
#to_json(options = nil) ⇒ Object
29102 29103 29104 |
# File 'lib/schemas.rb', line 29102 def to_json( = nil) JSON.generate(to_dynamic, ) end |