Class: GetApisAPIIDVersionsVersionIDResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDVersionsVersionIDResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6448 6449 6450 6451 6452 6453 |
# File 'lib/schemas.rb', line 6448 def self.from_dynamic!(d) d = Types::Hash[d] new( version: d["version"] ? GetApisAPIIDVersionsVersionIDResponseVersion.from_dynamic!(d["version"]) : nil, ) end |
.from_json!(json) ⇒ Object
6455 6456 6457 |
# File 'lib/schemas.rb', line 6455 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6459 6460 6461 6462 6463 |
# File 'lib/schemas.rb', line 6459 def to_dynamic { "version" => version&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
6465 6466 6467 |
# File 'lib/schemas.rb', line 6465 def to_json( = nil) JSON.generate(to_dynamic, ) end |