toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"plan_id": planId,
"title": title,
"identifier": identifier,
"amount": amount,
"type": type,
"txn_id": txnId,
"status": status,
"start_at": "${startAt!.year.toString().padLeft(4, '0')}-${startAt!.month.toString().padLeft(2, '0')}-${startAt!.day.toString().padLeft(2, '0')}",
"end_at": "${endAt!.year.toString().padLeft(4, '0')}-${endAt!.month.toString().padLeft(2, '0')}-${endAt!.day.toString().padLeft(2, '0')}",
"duration": duration,
"description": description,
"plan_type": planType,
"plan_limitation": planLimitation,
};