Class: PostScimV2GroupsResponseName
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostScimV2GroupsResponseName
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
26332 26333 26334 26335 26336 26337 26338 |
# File 'lib/schemas.rb', line 26332 def self.from_dynamic!(d) d = Types::Hash[d] new( family_name: d["familyName"], given_name: d["givenName"], ) end |
.from_json!(json) ⇒ Object
26340 26341 26342 |
# File 'lib/schemas.rb', line 26340 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
26344 26345 26346 26347 26348 26349 |
# File 'lib/schemas.rb', line 26344 def to_dynamic { "familyName" => family_name, "givenName" => given_name, } end |
#to_json(options = nil) ⇒ Object
26351 26352 26353 |
# File 'lib/schemas.rb', line 26351 def to_json( = nil) JSON.generate(to_dynamic, ) end |