toAffisePurchasedInfo static method
Implementation
static AffisePurchasedInfo? toAffisePurchasedInfo(dynamic from) {
var json = tryCast<Map<Object?, Object?>>(from);
if (json == null) return null;
return AffisePurchasedInfo(
product: toProduct(json[DataName.PRODUCT]),
orderId: json[DataName.ORDER_ID] as String?,
originalOrderId: json[DataName.ORIGINAL_ORDER_ID] as String?,
purchase: json[DataName.PURCHASE] as String?,
);
}