RequestPurchaseIosProps.fromJson constructor

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

Implementation

factory RequestPurchaseIosProps.fromJson(Map<String, dynamic> json) {
  return RequestPurchaseIosProps(
    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,
  );
}