Class: PostScimV2UsersResponse409

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



26988
26989
26990
26991
26992
26993
26994
26995
26996
# File 'lib/schemas.rb', line 26988

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



26998
26999
27000
# File 'lib/schemas.rb', line 26998

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

Instance Method Details

#to_dynamicObject



27002
27003
27004
27005
27006
27007
27008
27009
# File 'lib/schemas.rb', line 27002

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

#to_json(options = nil) ⇒ Object



27011
27012
27013
# File 'lib/schemas.rb', line 27011

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