Class: PostMocksMockIDPublishResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostMocksMockIDPublishResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
23987 23988 23989 23990 23991 23992 |
# File 'lib/schemas.rb', line 23987 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostMocksMockIDPublishResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
23994 23995 23996 |
# File 'lib/schemas.rb', line 23994 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
23998 23999 24000 24001 24002 |
# File 'lib/schemas.rb', line 23998 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
24004 24005 24006 |
# File 'lib/schemas.rb', line 24004 def to_json( = nil) JSON.generate(to_dynamic, ) end |