Class: GetMonitorsMonitorIDResponseMonitorNotificationsOnFailureItem

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



12629
12630
12631
12632
12633
12634
# File 'lib/schemas.rb', line 12629

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

.from_json!(json) ⇒ Object



12636
12637
12638
# File 'lib/schemas.rb', line 12636

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

Instance Method Details

#to_dynamicObject



12640
12641
12642
12643
12644
# File 'lib/schemas.rb', line 12640

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

#to_json(options = nil) ⇒ Object



12646
12647
12648
# File 'lib/schemas.rb', line 12646

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