Class: GetScimV2ResourceTypesResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetScimV2ResourceTypesResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
14836 14837 14838 14839 14840 14841 |
# File 'lib/schemas.rb', line 14836 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetScimV2ResourceTypesResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
14843 14844 14845 |
# File 'lib/schemas.rb', line 14843 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
14847 14848 14849 14850 14851 |
# File 'lib/schemas.rb', line 14847 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
14853 14854 14855 |
# File 'lib/schemas.rb', line 14853 def to_json( = nil) JSON.generate(to_dynamic, ) end |