Class: GetScimV2ServiceProviderConfigResponse401

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



15288
15289
15290
15291
15292
15293
15294
15295
# File 'lib/schemas.rb', line 15288

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

.from_json!(json) ⇒ Object



15297
15298
15299
# File 'lib/schemas.rb', line 15297

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

Instance Method Details

#to_dynamicObject



15301
15302
15303
15304
15305
15306
15307
# File 'lib/schemas.rb', line 15301

def to_dynamic
  {
    "detail"  => detail,
    "schemas" => schemas,
    "status"  => status,
  }
end

#to_json(options = nil) ⇒ Object



15309
15310
15311
# File 'lib/schemas.rb', line 15309

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