Class: GetSecretTypesResponse500
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetSecretTypesResponse500
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16241 16242 16243 16244 16245 16246 16247 16248 16249 |
# File 'lib/schemas.rb', line 16241 def self.from_dynamic!(d) d = Types::Hash[d] new( instance: d["instance"], status: d["status"], title: d["title"], get_secret_types_response500_type: d["type"], ) end |
.from_json!(json) ⇒ Object
16251 16252 16253 |
# File 'lib/schemas.rb', line 16251 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16255 16256 16257 16258 16259 16260 16261 16262 |
# File 'lib/schemas.rb', line 16255 def to_dynamic { "instance" => instance, "status" => status, "title" => title, "type" => get_secret_types_response500_type, } end |
#to_json(options = nil) ⇒ Object
16264 16265 16266 |
# File 'lib/schemas.rb', line 16264 def to_json( = nil) JSON.generate(to_dynamic, ) end |