Class: PatchScimV2UsersUserIDResponse
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- PatchScimV2UsersUserIDResponse
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 | # File 'lib/schemas.rb', line 18999 def self.from_dynamic!(d) d = Types::Hash[d] new( active: d["active"], external_id: d["externalId"], id: d["id"], patch_scim_v2_users_user_id_response_meta: d["meta"] ? PatchScimV2UsersUserIDResponseMeta.from_dynamic!(d["meta"]) : nil, patch_scim_v2_users_user_id_response_name: d["name"] ? PatchScimV2UsersUserIDResponseName.from_dynamic!(d["name"]) : nil, schemas: d["schemas"], user_name: d["userName"], ) end | 
.from_json!(json) ⇒ Object
| 19012 19013 19014 | # File 'lib/schemas.rb', line 19012 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 | # File 'lib/schemas.rb', line 19016 def to_dynamic { "active" => active, "externalId" => external_id, "id" => id, "meta" => &.to_dynamic, "name" => patch_scim_v2_users_user_id_response_name&.to_dynamic, "schemas" => schemas, "userName" => user_name, } end | 
#to_json(options = nil) ⇒ Object
| 19028 19029 19030 | # File 'lib/schemas.rb', line 19028 def to_json( = nil) JSON.generate(to_dynamic, ) end |