toJson method
Implementation
Map<String, dynamic> toJson() => {
'articleId': articleId,
'quantity': quantity,
'totalCents': ?totalCents,
'unitPriceMicros': ?unitPriceMicros,
'landedCostCents': ?landedCostCents,
'expiresOn': ?expiresOn,
'batch': ?batch,
if (serialNumbers != null) 'serialNumbers': [...serialNumbers!],
};