Transportation.fromJson constructor Null safety

Transportation.fromJson(
  1. Map _json
)

Implementation

Transportation.fromJson(core.Map _json)
    : this(
        airportShuttle: _json.containsKey('airportShuttle')
            ? _json['airportShuttle'] as core.bool
            : null,
        airportShuttleException: _json.containsKey('airportShuttleException')
            ? _json['airportShuttleException'] as core.String
            : null,
        carRentalOnProperty: _json.containsKey('carRentalOnProperty')
            ? _json['carRentalOnProperty'] as core.bool
            : null,
        carRentalOnPropertyException:
            _json.containsKey('carRentalOnPropertyException')
                ? _json['carRentalOnPropertyException'] as core.String
                : null,
        freeAirportShuttle: _json.containsKey('freeAirportShuttle')
            ? _json['freeAirportShuttle'] as core.bool
            : null,
        freeAirportShuttleException:
            _json.containsKey('freeAirportShuttleException')
                ? _json['freeAirportShuttleException'] as core.String
                : null,
        freePrivateCarService: _json.containsKey('freePrivateCarService')
            ? _json['freePrivateCarService'] as core.bool
            : null,
        freePrivateCarServiceException:
            _json.containsKey('freePrivateCarServiceException')
                ? _json['freePrivateCarServiceException'] as core.String
                : null,
        localShuttle: _json.containsKey('localShuttle')
            ? _json['localShuttle'] as core.bool
            : null,
        localShuttleException: _json.containsKey('localShuttleException')
            ? _json['localShuttleException'] as core.String
            : null,
        privateCarService: _json.containsKey('privateCarService')
            ? _json['privateCarService'] as core.bool
            : null,
        privateCarServiceException:
            _json.containsKey('privateCarServiceException')
                ? _json['privateCarServiceException'] as core.String
                : null,
        transfer: _json.containsKey('transfer')
            ? _json['transfer'] as core.bool
            : null,
        transferException: _json.containsKey('transferException')
            ? _json['transferException'] as core.String
            : null,
      );