Class: PostScimV2GroupsBodyName
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- PostScimV2GroupsBodyName
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 26202 26203 26204 26205 26206 26207 26208 | # File 'lib/schemas.rb', line 26202 def self.from_dynamic!(d) d = Types::Hash[d] new( family_name: d["familyName"], given_name: d["givenName"], ) end | 
.from_json!(json) ⇒ Object
| 26210 26211 26212 | # File 'lib/schemas.rb', line 26210 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 26214 26215 26216 26217 26218 26219 | # File 'lib/schemas.rb', line 26214 def to_dynamic { "familyName" => family_name, "givenName" => given_name, } end | 
#to_json(options = nil) ⇒ Object
| 26221 26222 26223 | # File 'lib/schemas.rb', line 26221 def to_json( = nil) JSON.generate(to_dynamic, ) end |