toJson method
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;
}