toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (airportShuttle != null) 'airportShuttle': airportShuttle!,
      if (airportShuttleException != null)
        'airportShuttleException': airportShuttleException!,
      if (carRentalOnProperty != null)
        'carRentalOnProperty': carRentalOnProperty!,
      if (carRentalOnPropertyException != null)
        'carRentalOnPropertyException': carRentalOnPropertyException!,
      if (freeAirportShuttle != null)
        'freeAirportShuttle': freeAirportShuttle!,
      if (freeAirportShuttleException != null)
        'freeAirportShuttleException': freeAirportShuttleException!,
      if (freePrivateCarService != null)
        'freePrivateCarService': freePrivateCarService!,
      if (freePrivateCarServiceException != null)
        'freePrivateCarServiceException': freePrivateCarServiceException!,
      if (localShuttle != null) 'localShuttle': localShuttle!,
      if (localShuttleException != null)
        'localShuttleException': localShuttleException!,
      if (privateCarService != null) 'privateCarService': privateCarService!,
      if (privateCarServiceException != null)
        'privateCarServiceException': privateCarServiceException!,
      if (transfer != null) 'transfer': transfer!,
      if (transferException != null) 'transferException': transferException!,
    };