Class: Pago::V2026_04::Models::BenefitFeatureFlagSubscriberProperties

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Overview

Properties available to subscribers for a benefit of type feature_flag.

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
[].freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw

Constructor Details

#initializeBenefitFeatureFlagSubscriberProperties

Returns a new instance of BenefitFeatureFlagSubscriberProperties.



3983
3984
3985
# File 'lib/pago/v2026_04/models.rb', line 3983

def initialize
  super
end

Class Method Details

.from_json(data) ⇒ BenefitFeatureFlagSubscriberProperties?

Parameters:

  • data (Hash, String, nil)

Returns:



3989
3990
3991
3992
3993
3994
3995
# File 'lib/pago/v2026_04/models.rb', line 3989

def self.from_json(data)
  data = ::JSON.parse(data) if data.is_a?(String)
  data = ::Pago::Serde.object(data)
  return nil if data.nil?

  wrap_raw(new, data)
end