Class: DeleteWorkspacesWorkspaceIDResponseWorkspace

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



4017
4018
4019
4020
4021
4022
# File 'lib/schemas.rb', line 4017

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

.from_json!(json) ⇒ Object



4024
4025
4026
# File 'lib/schemas.rb', line 4024

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

Instance Method Details

#to_dynamicObject



4028
4029
4030
4031
4032
# File 'lib/schemas.rb', line 4028

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

#to_json(options = nil) ⇒ Object



4034
4035
4036
# File 'lib/schemas.rb', line 4034

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