RequestSubscriptionIosProps.fromJson constructor
RequestSubscriptionIosProps.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RequestSubscriptionIosProps.fromJson(Map<String, dynamic> json) {
return RequestSubscriptionIosProps(
advancedCommerceData: json['advancedCommerceData'] as String?,
andDangerouslyFinishTransactionAutomatically: json['andDangerouslyFinishTransactionAutomatically'] as bool?,
appAccountToken: json['appAccountToken'] as String?,
introductoryOfferEligibility: json['introductoryOfferEligibility'] as bool?,
promotionalOfferJWS: json['promotionalOfferJWS'] != null ? PromotionalOfferJWSInputIOS.fromJson(json['promotionalOfferJWS'] as Map<String, dynamic>) : null,
quantity: json['quantity'] as int?,
sku: json['sku'] as String,
winBackOffer: json['winBackOffer'] != null ? WinBackOfferInputIOS.fromJson(json['winBackOffer'] as Map<String, dynamic>) : null,
withOffer: json['withOffer'] != null ? DiscountOfferInputIOS.fromJson(json['withOffer'] as Map<String, dynamic>) : null,
);
}