Class: Pago::V2026_04::Models::CustomFieldCheckboxProperties
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::CustomFieldCheckboxProperties
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
form_label: "form_label",
form_help_text: "form_help_text",
form_placeholder: "form_placeholder"
}.freeze
- REQUIRED_KEYS =
[].freeze
Instance Attribute Summary collapse
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
#initialize(form_label: ::Pago::UNSET, form_help_text: ::Pago::UNSET, form_placeholder: ::Pago::UNSET) ⇒ CustomFieldCheckboxProperties
Returns a new instance of CustomFieldCheckboxProperties.
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
|
# File 'lib/pago/v2026_04/models.rb', line 13257
def initialize(
form_label: ::Pago::UNSET,
form_help_text: ::Pago::UNSET,
form_placeholder: ::Pago::UNSET
)
super()
assign(:form_label, form_label)
assign(:form_help_text, form_help_text)
assign(:form_placeholder, form_placeholder)
end
|
Instance Attribute Details
#form_help_text ⇒ String
13252
13253
13254
|
# File 'lib/pago/v2026_04/models.rb', line 13252
def form_help_text
@form_help_text
end
|
13249
13250
13251
|
# File 'lib/pago/v2026_04/models.rb', line 13249
def form_label
@form_label
end
|
13255
13256
13257
|
# File 'lib/pago/v2026_04/models.rb', line 13255
def form_placeholder
@form_placeholder
end
|
Class Method Details
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
|
# File 'lib/pago/v2026_04/models.rb', line 13270
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(
form_label: (data.key?("form_label") ? data["form_label"] : ::Pago::UNSET),
form_help_text: (data.key?("form_help_text") ? data["form_help_text"] : ::Pago::UNSET),
form_placeholder: (data.key?("form_placeholder") ? data["form_placeholder"] : ::Pago::UNSET)
),
data
)
end
|