Class: DeleteNetworkPrivateElementTypeElementIDResponse500Error

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



3747
3748
3749
3750
3751
3752
3753
# File 'lib/schemas.rb', line 3747

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

.from_json!(json) ⇒ Object



3755
3756
3757
# File 'lib/schemas.rb', line 3755

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

Instance Method Details

#to_dynamicObject



3759
3760
3761
3762
3763
3764
# File 'lib/schemas.rb', line 3759

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

#to_json(options = nil) ⇒ Object



3766
3767
3768
# File 'lib/schemas.rb', line 3766

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