Class: GetWorkspacesWorkspaceIDTagsResponse403

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



17598
17599
17600
17601
17602
17603
17604
17605
17606
# File 'lib/schemas.rb', line 17598

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

.from_json!(json) ⇒ Object



17608
17609
17610
# File 'lib/schemas.rb', line 17608

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

Instance Method Details

#to_dynamicObject



17612
17613
17614
17615
17616
17617
17618
17619
# File 'lib/schemas.rb', line 17612

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

#to_json(options = nil) ⇒ Object



17621
17622
17623
# File 'lib/schemas.rb', line 17621

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