toJson method
Implementation
Map<String, dynamic> toJson() => recount
? {'status': 'recount'}
: ready
? {'status': 'ready'}
: {
'status': 'closed',
'shift': shift!.toJson(),
'receipt': receipt!.toJson(),
if (afterCountReceipt != null) 'afterCountReceipt': afterCountReceipt!.toJson(),
'lastShiftOfRegister': lastShiftOfRegister,
};