Tier.fromJson constructor
Implementation
factory Tier.fromJson(Map<String, dynamic> json) => Tier(
priceOverrides: PriceOverrides.fromJson(json["priceOverrides"]),
currency: json["currency"],
basePrice:
json["basePrice"] == null ? null : json["basePrice"].toDouble(),
offers: List<Offer>.from(json["offers"].map((x) => Offer.fromJson(x))),
id: json["_id"] == null ? null : json["_id"],
price: json["price"] == null ? null : json["price"].toDouble(),
duration: json["duration"] == null ? null : json["duration"],
);