decode static method
Implementation
static PurchaseInfo decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return PurchaseInfo(
platformId: pigeonMap['platformId'] as String?,
revenue: pigeonMap['revenue'] as String?,
tax: pigeonMap['tax'] as String?,
shipping: pigeonMap['shipping'] as String?,
currencyCode: pigeonMap['currencyCode'] as String?,
coupon: pigeonMap['coupon'] as String?,
checkoutTime: pigeonMap['checkoutTime'] as int?,
items: (pigeonMap['items'] as List<Object?>?)?.cast<PurchaseItem?>(),
);
}