Class: PostImportOpenapiResponse400ErrorDetails

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



23545
23546
23547
23548
23549
23550
# File 'lib/schemas.rb', line 23545

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

.from_json!(json) ⇒ Object



23552
23553
23554
# File 'lib/schemas.rb', line 23552

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

Instance Method Details

#to_dynamicObject



23556
23557
23558
23559
23560
# File 'lib/schemas.rb', line 23556

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

#to_json(options = nil) ⇒ Object



23562
23563
23564
# File 'lib/schemas.rb', line 23562

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