Page.fromJson constructor
Implementation
factory Page.fromJson(Map<String, Object?> json) => Page(
number: (json["number"] as num).toInt(),
purchaseIntents: (json["purchase_intents"] as List)
.map(
(item) => PurchaseIntent.fromJson(
(item as Map).cast<String, Object?>(),
),
)
.toList(),
size: (json["size"] as num).toInt(),
);