Class: GetSecretTypesResponseDataItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetSecretTypesResponseDataItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16062 16063 16064 16065 16066 16067 16068 16069 |
# File 'lib/schemas.rb', line 16062 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], get_secret_types_response_data_item_name: d["name"], get_secret_types_response_data_item_type: d["type"], ) end |
.from_json!(json) ⇒ Object
16071 16072 16073 |
# File 'lib/schemas.rb', line 16071 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16075 16076 16077 16078 16079 16080 16081 |
# File 'lib/schemas.rb', line 16075 def to_dynamic { "id" => id, "name" => get_secret_types_response_data_item_name, "type" => get_secret_types_response_data_item_type, } end |
#to_json(options = nil) ⇒ Object
16083 16084 16085 |
# File 'lib/schemas.rb', line 16083 def to_json( = nil) JSON.generate(to_dynamic, ) end |