Class: PutNetworkPrivateNetworkEntityRequestRequestIDBodyResponse

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



33874
33875
33876
33877
33878
33879
# File 'lib/schemas.rb', line 33874

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

.from_json!(json) ⇒ Object



33881
33882
33883
# File 'lib/schemas.rb', line 33881

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

Instance Method Details

#to_dynamicObject



33885
33886
33887
33888
33889
# File 'lib/schemas.rb', line 33885

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

#to_json(options = nil) ⇒ Object



33891
33892
33893
# File 'lib/schemas.rb', line 33891

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