IntroductoryPrice.fromJson constructor

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

Implementation

factory IntroductoryPrice.fromJson(Map<String, dynamic> json) => IntroductoryPrice(
    (json['price'] as num).toDouble(),
    json['priceString'] as String,
    json['period'] as String,
    (json['cycles'] as num).round(),
    periodUnitFromJson(json['periodUnit']),
    (json['periodNumberOfUnits'] as num).round(),
  );