Class: Pago::V2026_04::Models::ListResourceLicenseKeyRead
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::ListResourceLicenseKeyRead
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
items: "items",
pagination: "pagination"
}.freeze
- REQUIRED_KEYS =
["items", "pagination"].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
Returns a new instance of ListResourceLicenseKeyRead.
28227
28228
28229
28230
28231
28232
28233
28234
|
# File 'lib/pago/v2026_04/models.rb', line 28227
def initialize(
items:,
pagination:
)
super()
assign(:items, items)
assign(:pagination, )
end
|
Instance Attribute Details
28222
28223
28224
|
# File 'lib/pago/v2026_04/models.rb', line 28222
def items
@items
end
|
28225
28226
28227
|
# File 'lib/pago/v2026_04/models.rb', line 28225
def
@pagination
end
|
Class Method Details
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
|
# File 'lib/pago/v2026_04/models.rb', line 28238
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(
items: (data.key?("items") ? ::Pago::Serde.array(data["items"]) { |item0| Models::LicenseKeyRead.from_json(item0) } : ::Pago::UNSET),
pagination: (data.key?("pagination") ? Models::Pagination.from_json(data["pagination"]) : ::Pago::UNSET)
),
data
)
end
|