Class: PutWorkspacesWorkspaceIDTagsResponse400

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



35343
35344
35345
35346
35347
35348
35349
35350
35351
# File 'lib/schemas.rb', line 35343

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

.from_json!(json) ⇒ Object



35353
35354
35355
# File 'lib/schemas.rb', line 35353

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

Instance Method Details

#to_dynamicObject



35357
35358
35359
35360
35361
35362
35363
35364
# File 'lib/schemas.rb', line 35357

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

#to_json(options = nil) ⇒ Object



35366
35367
35368
# File 'lib/schemas.rb', line 35366

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