RequestPurchaseAndroidProps.fromJson constructor
RequestPurchaseAndroidProps.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RequestPurchaseAndroidProps.fromJson(Map<String, dynamic> json) {
return RequestPurchaseAndroidProps(
developerBillingOption: json['developerBillingOption'] != null ? DeveloperBillingOptionParamsAndroid.fromJson(json['developerBillingOption'] as Map<String, dynamic>) : null,
isOfferPersonalized: json['isOfferPersonalized'] as bool?,
obfuscatedAccountId: json['obfuscatedAccountId'] as String?,
obfuscatedProfileId: json['obfuscatedProfileId'] as String?,
offerToken: json['offerToken'] as String?,
skus: (json['skus'] as List<dynamic>).map((e) => e as String).toList(),
);
}