toJson method
Implementation
Map<String, dynamic> toJson() => {
'drawer': drawer.toJson(),
'rights': rights.toJson(),
if (shift != null) 'shift': shift!.toJson(),
if (longOpenWarning != null) 'longOpenWarning': longOpenWarning,
'tipClaims': [for (final t in tipClaims) t.toJson()],
'tips': [for (final t in tips) t.toJson()],
if (suggestedFloatCents != null) 'suggestedFloatCents': suggestedFloatCents,
if (expectedCents != null) 'expectedCents': expectedCents,
if (recentOpenings != null) 'recentOpenings': [for (final o in recentOpenings!) o.toJson()],
if (suggestedFromShiftNumber != null) 'suggestedFromShiftNumber': suggestedFromShiftNumber,
};