toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dailyHousekeeping != null) 'dailyHousekeeping': dailyHousekeeping!,
      if (dailyHousekeepingException != null)
        'dailyHousekeepingException': dailyHousekeepingException!,
      if (housekeepingAvailable != null)
        'housekeepingAvailable': housekeepingAvailable!,
      if (housekeepingAvailableException != null)
        'housekeepingAvailableException': housekeepingAvailableException!,
      if (turndownService != null) 'turndownService': turndownService!,
      if (turndownServiceException != null)
        'turndownServiceException': turndownServiceException!,
    };