toJson method
Implementation
Map<String, dynamic> toJson() => {
'idempotencyKey': idempotencyKey,
'stocktakeId': stocktakeId,
'articleId': articleId,
'condition': ?condition,
'quantity': quantity,
if (serialNumbers != null) 'serialNumbers': [...serialNumbers!],
'note': ?note,
};