Class: GetApisAPIIDSchemasSchemaIDFilesResponse500

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



5296
5297
5298
5299
5300
5301
5302
5303
# File 'lib/schemas.rb', line 5296

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

.from_json!(json) ⇒ Object



5305
5306
5307
# File 'lib/schemas.rb', line 5305

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

Instance Method Details

#to_dynamicObject



5309
5310
5311
5312
5313
5314
5315
# File 'lib/schemas.rb', line 5309

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

#to_json(options = nil) ⇒ Object



5317
5318
5319
# File 'lib/schemas.rb', line 5317

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