Class: PostMocksMockIDServerResponsesResponse400ErrorDetails

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



24270
24271
24272
24273
24274
24275
# File 'lib/schemas.rb', line 24270

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

.from_json!(json) ⇒ Object



24277
24278
24279
# File 'lib/schemas.rb', line 24277

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

Instance Method Details

#to_dynamicObject



24281
24282
24283
24284
24285
# File 'lib/schemas.rb', line 24281

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

#to_json(options = nil) ⇒ Object



24287
24288
24289
# File 'lib/schemas.rb', line 24287

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