Class: PutScimV2UsersUserIDBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutScimV2UsersUserIDBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
34389 34390 34391 34392 34393 34394 34395 |
# File 'lib/schemas.rb', line 34389 def self.from_dynamic!(d) d = Types::Hash[d] new( put_scim_v2_users_user_id_body_name: d["name"] ? PutScimV2UsersUserIDBodyName.from_dynamic!(d["name"]) : nil, schemas: d["schemas"], ) end |
.from_json!(json) ⇒ Object
34397 34398 34399 |
# File 'lib/schemas.rb', line 34397 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
34401 34402 34403 34404 34405 34406 |
# File 'lib/schemas.rb', line 34401 def to_dynamic { "name" => put_scim_v2_users_user_id_body_name&.to_dynamic, "schemas" => schemas, } end |
#to_json(options = nil) ⇒ Object
34408 34409 34410 |
# File 'lib/schemas.rb', line 34408 def to_json( = nil) JSON.generate(to_dynamic, ) end |