Class: GetScimV2ServiceProviderConfigResponsePatch

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



15166
15167
15168
15169
15170
15171
# File 'lib/schemas.rb', line 15166

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

.from_json!(json) ⇒ Object



15173
15174
15175
# File 'lib/schemas.rb', line 15173

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

Instance Method Details

#to_dynamicObject



15177
15178
15179
15180
15181
# File 'lib/schemas.rb', line 15177

def to_dynamic
  {
    "supported" => supported,
  }
end

#to_json(options = nil) ⇒ Object



15183
15184
15185
# File 'lib/schemas.rb', line 15183

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