Class: GetScimV2ServiceProviderConfigResponseSort

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



15191
15192
15193
15194
15195
15196
# File 'lib/schemas.rb', line 15191

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

.from_json!(json) ⇒ Object



15198
15199
15200
# File 'lib/schemas.rb', line 15198

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

Instance Method Details

#to_dynamicObject



15202
15203
15204
15205
15206
# File 'lib/schemas.rb', line 15202

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

#to_json(options = nil) ⇒ Object



15208
15209
15210
# File 'lib/schemas.rb', line 15208

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