Class: PutApisAPIIDCollectionsCollectionIDSyncWithSchemaTasksResponse404

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



28239
28240
28241
28242
28243
28244
28245
28246
# File 'lib/schemas.rb', line 28239

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

.from_json!(json) ⇒ Object



28248
28249
28250
# File 'lib/schemas.rb', line 28248

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

Instance Method Details

#to_dynamicObject



28252
28253
28254
28255
28256
28257
28258
# File 'lib/schemas.rb', line 28252

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

#to_json(options = nil) ⇒ Object



28260
28261
28262
# File 'lib/schemas.rb', line 28260

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