RequestSubscriptionIosProps.fromJson constructor

RequestSubscriptionIosProps.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RequestSubscriptionIosProps.fromJson(Map<String, dynamic> json) {
  return RequestSubscriptionIosProps(
    andDangerouslyFinishTransactionAutomatically: json['andDangerouslyFinishTransactionAutomatically'] as bool?,
    appAccountToken: json['appAccountToken'] as String?,
    quantity: json['quantity'] as int?,
    sku: json['sku'] as String,
    withOffer: json['withOffer'] != null ? DiscountOfferInputIOS.fromJson(json['withOffer'] as Map<String, dynamic>) : null,
  );
}