toIosJson method
Implementation
String toIosJson() {
String? introductoryPricePeriod;
int? introductoryAmountPrice;
int? introductoryPriceCycles;
if (introductDiscount != null &&
AWCommonUtil.strNotEmpty(introductDiscount?.discountPeriod)) {
introductoryPricePeriod = introductDiscount?.discountPeriod;
introductoryAmountPrice = introductDiscount?.discountPrice;
introductoryPriceCycles = introductDiscount?.discountCycle;
}
String? freeTrialPeriod;
if (discounts != null && discounts![0] != null) {
if (AWCommonUtil.strNotEmpty(discounts![0].discountPeriod)) {
freeTrialPeriod = discounts![0].discountPeriod;
}
}
return '{\"productIdentifier\":\"$productId\",'
'\"productType\":\"$productType\"'
'}';
}