Class: PutWorkspacesWorkspaceIDTagsResponse401

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



35386
35387
35388
35389
35390
35391
35392
35393
35394
# File 'lib/schemas.rb', line 35386

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

.from_json!(json) ⇒ Object



35396
35397
35398
# File 'lib/schemas.rb', line 35396

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

Instance Method Details

#to_dynamicObject



35400
35401
35402
35403
35404
35405
35406
35407
# File 'lib/schemas.rb', line 35400

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

#to_json(options = nil) ⇒ Object



35409
35410
35411
# File 'lib/schemas.rb', line 35409

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