Class: PatchScimV2UsersUserIDBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PatchScimV2UsersUserIDBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
18883 18884 18885 18886 18887 18888 18889 |
# File 'lib/schemas.rb', line 18883 def self.from_dynamic!(d) d = Types::Hash[d] new( operations: d["Operations"]&.map { |x| PatchScimV2UsersUserIDBodyOperationsItem.from_dynamic!(x) }, schemas: d["schemas"], ) end |
.from_json!(json) ⇒ Object
18891 18892 18893 |
# File 'lib/schemas.rb', line 18891 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
18895 18896 18897 18898 18899 18900 |
# File 'lib/schemas.rb', line 18895 def to_dynamic { "Operations" => operations&.map { |x| x.to_dynamic }, "schemas" => schemas, } end |
#to_json(options = nil) ⇒ Object
18902 18903 18904 |
# File 'lib/schemas.rb', line 18902 def to_json( = nil) JSON.generate(to_dynamic, ) end |