Class: PostNetworkPrivateResponse404
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostNetworkPrivateResponse404
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
26083 26084 26085 26086 26087 26088 |
# File 'lib/schemas.rb', line 26083 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostNetworkPrivateResponse404Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
26090 26091 26092 |
# File 'lib/schemas.rb', line 26090 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
26094 26095 26096 26097 26098 |
# File 'lib/schemas.rb', line 26094 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
26100 26101 26102 |
# File 'lib/schemas.rb', line 26100 def to_json( = nil) JSON.generate(to_dynamic, ) end |