Class: PutWorkspacesWorkspaceIDTagsResponseTagsItem

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



35279
35280
35281
35282
35283
35284
# File 'lib/schemas.rb', line 35279

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    slug: d["slug"],
  )
end

.from_json!(json) ⇒ Object



35286
35287
35288
# File 'lib/schemas.rb', line 35286

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

Instance Method Details

#to_dynamicObject



35290
35291
35292
35293
35294
# File 'lib/schemas.rb', line 35290

def to_dynamic
  {
    "slug" => slug,
  }
end

#to_json(options = nil) ⇒ Object



35296
35297
35298
# File 'lib/schemas.rb', line 35296

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