Class: PutCollectionsCollectionIDFoldersFolderIDResponse500

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



30031
30032
30033
30034
30035
30036
30037
30038
# File 'lib/schemas.rb', line 30031

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    detail:                                                           d["detail"],
    title:                                                            d["title"],
    put_collections_collection_id_folders_folder_id_response500_type: d["type"],
  )
end

.from_json!(json) ⇒ Object



30040
30041
30042
# File 'lib/schemas.rb', line 30040

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



30044
30045
30046
30047
30048
30049
30050
# File 'lib/schemas.rb', line 30044

def to_dynamic
  {
    "detail" => detail,
    "title"  => title,
    "type"   => put_collections_collection_id_folders_folder_id_response500_type,
  }
end

#to_json(options = nil) ⇒ Object



30052
30053
30054
# File 'lib/schemas.rb', line 30052

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end