Class: GetApisAPIIDSchemasSchemaIDFilesResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDSchemasSchemaIDFilesResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
5073 5074 5075 5076 5077 5078 |
# File 'lib/schemas.rb', line 5073 def self.from_dynamic!(d) d = Types::Hash[d] new( next_cursor: d["nextCursor"], ) end |
.from_json!(json) ⇒ Object
5080 5081 5082 |
# File 'lib/schemas.rb', line 5080 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
5084 5085 5086 5087 5088 |
# File 'lib/schemas.rb', line 5084 def to_dynamic { "nextCursor" => next_cursor, } end |
#to_json(options = nil) ⇒ Object
5090 5091 5092 |
# File 'lib/schemas.rb', line 5090 def to_json( = nil) JSON.generate(to_dynamic, ) end |