toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
if (_$data.containsKey('amount')) {
final l$amount = amount;
result$data['amount'] = l$amount;
}
if (_$data.containsKey('paymentMethod')) {
final l$paymentMethod = paymentMethod;
result$data['paymentMethod'] = l$paymentMethod;
}
if (_$data.containsKey('paidAt')) {
final l$paidAt = paidAt;
result$data['paidAt'] =
l$paidAt == null ? null : dateTimeToJson(l$paidAt);
}
if (_$data.containsKey('deadline')) {
final l$deadline = deadline;
result$data['deadline'] =
l$deadline == null ? null : dateTimeToJson(l$deadline);
}
return result$data;
}