toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final j = <String, dynamic>{'idempotencyKey': idempotencyKey, 'invoiceId': invoiceId, 'reason': reason};
  _setzen(j, 'note', note);
  j['items'] = [for (final p in items) p.toJson()];
  return j;
}