Class: PostApisAPIIDSchemasBodyFilesItemRoot
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostApisAPIIDSchemasBodyFilesItemRoot
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19440 19441 19442 19443 19444 19445 |
# File 'lib/schemas.rb', line 19440 def self.from_dynamic!(d) d = Types::Hash[d] new( enabled: d["enabled"], ) end |
.from_json!(json) ⇒ Object
19447 19448 19449 |
# File 'lib/schemas.rb', line 19447 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19451 19452 19453 19454 19455 |
# File 'lib/schemas.rb', line 19451 def to_dynamic { "enabled" => enabled, } end |
#to_json(options = nil) ⇒ Object
19457 19458 19459 |
# File 'lib/schemas.rb', line 19457 def to_json( = nil) JSON.generate(to_dynamic, ) end |