Class: PutWorkspacesWorkspaceIDTagsResponse500

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



35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
# File 'lib/schemas.rb', line 35523

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

.from_json!(json) ⇒ Object



35534
35535
35536
# File 'lib/schemas.rb', line 35534

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

Instance Method Details

#to_dynamicObject



35538
35539
35540
35541
35542
35543
35544
35545
35546
# File 'lib/schemas.rb', line 35538

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

#to_json(options = nil) ⇒ Object



35548
35549
35550
# File 'lib/schemas.rb', line 35548

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