Payment.fromJSON constructor

Payment.fromJSON(
  1. Map<String, dynamic> data
)

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()
	);
}