Class: GetScimV2GroupsGroupIDResponseMembers

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/schemas.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



14162
14163
14164
14165
14166
14167
14168
# File 'lib/schemas.rb', line 14162

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    get_scim_v2_groups_group_id_response_members_display: d["display"],
    value:                                                d["value"],
  )
end

.from_json!(json) ⇒ Object



14170
14171
14172
# File 'lib/schemas.rb', line 14170

def self.from_json!(json)
  from_dynamic!(JSON.parse(json))
end

Instance Method Details

#to_dynamicObject



14174
14175
14176
14177
14178
14179
# File 'lib/schemas.rb', line 14174

def to_dynamic
  {
    "display" => get_scim_v2_groups_group_id_response_members_display,
    "value"   => value,
  }
end

#to_json(options = nil) ⇒ Object



14181
14182
14183
# File 'lib/schemas.rb', line 14181

def to_json(options = nil)
  JSON.generate(to_dynamic, options)
end