ProductOffer.fromJson constructor

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

Implementation

ProductOffer.fromJson(Map<String, dynamic> json)
    : introductoryOffer = json['introductoryOffer'] != null
          ? IntroductoryOfferPrice.fromJson(json['introductoryOffer'])
          : null,
      freeTrial = json['freeTrial'] != null
          ? FreeTrial.fromJson(json['freeTrial'])
          : null,
      gracePeriod = json['gracePeriod'] != null
          ? GracePeriod.fromJson(json['gracePeriod'])
          : null;