Class: GetMonitorsMonitorIDResponseMonitorNotificationsOnErrorItem

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



12602
12603
12604
12605
12606
12607
# File 'lib/schemas.rb', line 12602

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

.from_json!(json) ⇒ Object



12609
12610
12611
# File 'lib/schemas.rb', line 12609

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

Instance Method Details

#to_dynamicObject



12613
12614
12615
12616
12617
# File 'lib/schemas.rb', line 12613

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

#to_json(options = nil) ⇒ Object



12619
12620
12621
# File 'lib/schemas.rb', line 12619

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