Class: PatchScimV2UsersUserIDBodyOperationsItemValue

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



18821
18822
18823
18824
18825
18826
# File 'lib/schemas.rb', line 18821

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

.from_json!(json) ⇒ Object



18828
18829
18830
# File 'lib/schemas.rb', line 18828

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

Instance Method Details

#to_dynamicObject



18832
18833
18834
18835
18836
# File 'lib/schemas.rb', line 18832

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

#to_json(options = nil) ⇒ Object



18838
18839
18840
# File 'lib/schemas.rb', line 18838

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