PlanData.fromJson constructor

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

Implementation

factory PlanData.fromJson(Map<String, dynamic> json) => PlanData(
  id: json["id"],
  iconDark: json["iconDark"],
  iconLight: json["iconLight"],
  backPhoto: json["backPhoto"],
  name: json["name"],
  primaryTagLine: json["primaryTagLine"],
  secondaryTagLine: json["secondaryTagLine"],
  durationInMonths: json["durationInMonths"],
  amount: json["amount"]?.toDouble(),
  insuranceFee: json["insuranceFee"]?.toDouble(),
  cover: json["cover"]?.toDouble(),
  note: json["note"],
  type: json["type"],
  typeText: json["typeText"],
  status: json["status"],
  statusText: json["statusText"],
  waitingPeriodInDays: json["waitingPeriodInDays"],
  planOfferings: List<String>.from(json["planOfferings"]),
  planExclusions: List<String>.from(json["planExclusions"]),
  planBenefits: List<String>.from(json["planBenefits"]),
  timeCreated: json["timeCreated"],
  timeUpdated: json["timeUpdated"],
  totalSubscribers: json["totalSubscribers"],
  activeSubscribers: json["activeSubscribers"],
  referralBonus: json["referralBonus"],
);