Class: GetNetworkPrivateResponseFoldersItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetNetworkPrivateResponseFoldersItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 |
# File 'lib/schemas.rb', line 13804 def self.from_dynamic!(d) d = Types::Hash[d] new( created_at: d["createdAt"], created_by: d["createdBy"], description: d["description"], id: d["id"], get_network_private_response_folders_item_name: d["name"], parent_folder_id: d["parentFolderId"], get_network_private_response_folders_item_type: d["type"], updated_at: d["updatedAt"], updated_by: d["updatedBy"], ) end |
.from_json!(json) ⇒ Object
13819 13820 13821 |
# File 'lib/schemas.rb', line 13819 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 |
# File 'lib/schemas.rb', line 13823 def to_dynamic { "createdAt" => created_at, "createdBy" => created_by, "description" => description, "id" => id, "name" => get_network_private_response_folders_item_name, "parentFolderId" => parent_folder_id, "type" => get_network_private_response_folders_item_type, "updatedAt" => updated_at, "updatedBy" => updated_by, } end |
#to_json(options = nil) ⇒ Object
13837 13838 13839 |
# File 'lib/schemas.rb', line 13837 def to_json( = nil) JSON.generate(to_dynamic, ) end |