toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json['bill_id'] = billId;
json['calculations'] = calculations;
json['created_at'] = createdAt.toIso8601String();
json['customer_email'] = customerEmail;
if (id != null) {
json['id'] = id;
}
json['system_size'] = systemSize;
json['total_cost'] = totalCost;
json['updated_at'] = updatedAt.toIso8601String();
return json;
}