Data.fromJson constructor
Implementation
factory Data.fromJson(Map<String, dynamic> json) => Data(
id: json["id"],
planId: json["plan_id"],
title: json["title"],
identifier: json["identifier"],
amount: json["amount"],
type: json["type"],
txnId: json["txn_id"],
status: json["status"],
startAt: json["start_at"] == null ? null : DateTime.parse(json["start_at"]),
endAt: json["end_at"] == null ? null : DateTime.parse(json["end_at"]),
duration: json["duration"],
description: json["description"],
planType: json["plan_type"],
planLimitation: json["plan_limitation"],
);