Class: PutWorkspacesWorkspaceIDResponse400

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



34993
34994
34995
34996
34997
34998
34999
# File 'lib/schemas.rb', line 34993

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

.from_json!(json) ⇒ Object



35001
35002
35003
# File 'lib/schemas.rb', line 35001

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

Instance Method Details

#to_dynamicObject



35005
35006
35007
35008
35009
35010
# File 'lib/schemas.rb', line 35005

def to_dynamic
  {
    "message" => message,
    "name"    => put_workspaces_workspace_id_response400_name,
  }
end

#to_json(options = nil) ⇒ Object



35012
35013
35014
# File 'lib/schemas.rb', line 35012

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