toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final j = <String, dynamic>{};
  j['description'] = description;
  _setzen(j, 'subtitle', subtitle);
  j['quantity'] = quantity;
  _setzen(j, 'unit', unit);
  _setzen(j, 'kind', kind);
  // Gesendet wird genau das Feld, das gesetzt ist -- beide zu senden waere
  // ebenso ungueltig wie keines.
  _setzen(j, 'unitPriceCents', unitPriceCents);
  _setzen(j, 'unitPriceMicros', unitPriceMicros);
  j['vatRate'] = vatRate;
  _setzen(j, 'discountPct', discountPct);
  _setzen(j, 'articleId', articleId);
  return j;
}