toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    '__typename': 'DiscountOffer',
    'currency': currency,
    'discountAmountMicrosAndroid': discountAmountMicrosAndroid,
    'displayPrice': displayPrice,
    'formattedDiscountAmountAndroid': formattedDiscountAmountAndroid,
    'fullPriceMicrosAndroid': fullPriceMicrosAndroid,
    'id': id,
    'limitedQuantityInfoAndroid': limitedQuantityInfoAndroid?.toJson(),
    'offerTagsAndroid': offerTagsAndroid,
    'offerTokenAndroid': offerTokenAndroid,
    'percentageDiscountAndroid': percentageDiscountAndroid,
    'preorderDetailsAndroid': preorderDetailsAndroid?.toJson(),
    'price': price,
    'rentalDetailsAndroid': rentalDetailsAndroid?.toJson(),
    'type': type.toJson(),
    'validTimeWindowAndroid': validTimeWindowAndroid?.toJson(),
  };
}