toJson method

Map<String, dynamic> toJson()

Implementation

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