Class: UpdatePanCollectionCollection
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- UpdatePanCollectionCollection
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
36878 36879 36880 36881 36882 36883 36884 36885 |
# File 'lib/schemas.rb', line 36878 def self.from_dynamic!(d) d = Types::Hash[d] new( environments: d["environments"] ? UpdatePanCollectionCollectionEnvironments.from_dynamic!(d["environments"]) : nil, parent_folder_id: d["parentFolderId"], summary: d["summary"], ) end |
.from_json!(json) ⇒ Object
36887 36888 36889 |
# File 'lib/schemas.rb', line 36887 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
36891 36892 36893 36894 36895 36896 36897 |
# File 'lib/schemas.rb', line 36891 def to_dynamic { "environments" => environments&.to_dynamic, "parentFolderId" => parent_folder_id, "summary" => summary, } end |
#to_json(options = nil) ⇒ Object
36899 36900 36901 |
# File 'lib/schemas.rb', line 36899 def to_json( = nil) JSON.generate(to_dynamic, ) end |