Class: DeleteNetworkPrivateElementTypeElementIDResponse404Error

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



3658
3659
3660
3661
3662
3663
3664
# File 'lib/schemas.rb', line 3658

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

.from_json!(json) ⇒ Object



3666
3667
3668
# File 'lib/schemas.rb', line 3666

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

Instance Method Details

#to_dynamicObject



3670
3671
3672
3673
3674
3675
# File 'lib/schemas.rb', line 3670

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

#to_json(options = nil) ⇒ Object



3677
3678
3679
# File 'lib/schemas.rb', line 3677

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