Class: GetMocksMockIDCallLogsResponseCallLogsItemResponseBody

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



10616
10617
10618
10619
10620
10621
# File 'lib/schemas.rb', line 10616

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

.from_json!(json) ⇒ Object



10623
10624
10625
# File 'lib/schemas.rb', line 10623

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

Instance Method Details

#to_dynamicObject



10627
10628
10629
10630
10631
# File 'lib/schemas.rb', line 10627

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

#to_json(options = nil) ⇒ Object



10633
10634
10635
# File 'lib/schemas.rb', line 10633

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