Plan.fromJson constructor

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

Implementation

Plan.fromJson(Map<String, dynamic> json) {
  gid = json["gid"];
  currency =
      json["currency"] != null ? Currency.fromJson(json["currency"]) : null;
  name = json["name"];
  amount = json["amount"];
  description = json["description"];
  currencyCode = json["currencyCode"];
  billingFrequency = json["billingFrequency"];
  billingPeriod = json["billingPeriod"];
}