Class: PostScimV2GroupsResponse400

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



26426
26427
26428
26429
26430
26431
26432
26433
26434
# File 'lib/schemas.rb', line 26426

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

.from_json!(json) ⇒ Object



26436
26437
26438
# File 'lib/schemas.rb', line 26436

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

Instance Method Details

#to_dynamicObject



26440
26441
26442
26443
26444
26445
26446
26447
# File 'lib/schemas.rb', line 26440

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

#to_json(options = nil) ⇒ Object



26449
26450
26451
# File 'lib/schemas.rb', line 26449

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