toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
final l$barcode = barcode;
result$data['barcode'] = l$barcode;
if (_$data.containsKey('quantity')) {
final l$quantity = quantity;
result$data['quantity'] = l$quantity;
}
if (_$data.containsKey('rent')) {
final l$rent = rent;
result$data['rent'] = l$rent?.toJson();
}
if (_$data.containsKey('priceCredit')) {
final l$priceCredit = priceCredit;
result$data['priceCredit'] = l$priceCredit?.toJson();
}
return result$data;
}