Payment.fromJSON constructor
Implementation
factory Payment.fromJSON(Map<String, dynamic> data) {
return Payment(
paymentDate: (data["paymentDate"] as int),
paymentType: data["paymentType"] == null ? null : PaymentType.fromJSON(data["paymentType"]),
paid: (data["paid"] as num?)?.toDouble()
);
}