toJson method

Map<String, dynamic> toJson()

{business, device}, dazu vouchers nur, wenn der Block vom Standard (Verkaufen aus) abweicht: ein Stand ohne Gutschein-Einstellung bleibt so Byte fuer Byte, wie er bis 11.2 gespeichert wurde.

Implementation

Map<String, dynamic> toJson() => {
      'business': business.toJson(),
      'device': device.toJson(),
      if (vouchers != PosVoucherSettings.off) 'vouchers': vouchers.toJson(),
      if (deposit != null) 'deposit': deposit!.toJson(),
      if (cardTerminal != null) 'cardTerminal': cardTerminal!.toJson(),
    };