Class: PatchCollectionsCollectionIDBodyCollection
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PatchCollectionsCollectionIDBodyCollection
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
17922 17923 17924 17925 17926 17927 17928 17929 17930 |
# File 'lib/schemas.rb', line 17922 def self.from_dynamic!(d) d = Types::Hash[d] new( auth: d["auth"], events: d["events"], info: d["info"] ? PatchCollectionsCollectionIDBodyCollectionInfo.from_dynamic!(d["info"]) : nil, variables: d["variables"], ) end |
.from_json!(json) ⇒ Object
17932 17933 17934 |
# File 'lib/schemas.rb', line 17932 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
17936 17937 17938 17939 17940 17941 17942 17943 |
# File 'lib/schemas.rb', line 17936 def to_dynamic { "auth" => auth, "events" => events, "info" => info&.to_dynamic, "variables" => variables, } end |
#to_json(options = nil) ⇒ Object
17945 17946 17947 |
# File 'lib/schemas.rb', line 17945 def to_json( = nil) JSON.generate(to_dynamic, ) end |