Pools.fromJson constructor Null safety

Pools.fromJson(
  1. Map _json
)

Implementation

Pools.fromJson(core.Map _json)
    : this(
        adultPool: _json.containsKey('adultPool')
            ? _json['adultPool'] as core.bool
            : null,
        adultPoolException: _json.containsKey('adultPoolException')
            ? _json['adultPoolException'] as core.String
            : null,
        hotTub:
            _json.containsKey('hotTub') ? _json['hotTub'] as core.bool : null,
        hotTubException: _json.containsKey('hotTubException')
            ? _json['hotTubException'] as core.String
            : null,
        indoorPool: _json.containsKey('indoorPool')
            ? _json['indoorPool'] as core.bool
            : null,
        indoorPoolException: _json.containsKey('indoorPoolException')
            ? _json['indoorPoolException'] as core.String
            : null,
        indoorPoolsCount: _json.containsKey('indoorPoolsCount')
            ? _json['indoorPoolsCount'] as core.int
            : null,
        indoorPoolsCountException:
            _json.containsKey('indoorPoolsCountException')
                ? _json['indoorPoolsCountException'] as core.String
                : null,
        lazyRiver: _json.containsKey('lazyRiver')
            ? _json['lazyRiver'] as core.bool
            : null,
        lazyRiverException: _json.containsKey('lazyRiverException')
            ? _json['lazyRiverException'] as core.String
            : null,
        lifeguard: _json.containsKey('lifeguard')
            ? _json['lifeguard'] as core.bool
            : null,
        lifeguardException: _json.containsKey('lifeguardException')
            ? _json['lifeguardException'] as core.String
            : null,
        outdoorPool: _json.containsKey('outdoorPool')
            ? _json['outdoorPool'] as core.bool
            : null,
        outdoorPoolException: _json.containsKey('outdoorPoolException')
            ? _json['outdoorPoolException'] as core.String
            : null,
        outdoorPoolsCount: _json.containsKey('outdoorPoolsCount')
            ? _json['outdoorPoolsCount'] as core.int
            : null,
        outdoorPoolsCountException:
            _json.containsKey('outdoorPoolsCountException')
                ? _json['outdoorPoolsCountException'] as core.String
                : null,
        pool: _json.containsKey('pool') ? _json['pool'] as core.bool : null,
        poolException: _json.containsKey('poolException')
            ? _json['poolException'] as core.String
            : null,
        poolsCount: _json.containsKey('poolsCount')
            ? _json['poolsCount'] as core.int
            : null,
        poolsCountException: _json.containsKey('poolsCountException')
            ? _json['poolsCountException'] as core.String
            : null,
        wadingPool: _json.containsKey('wadingPool')
            ? _json['wadingPool'] as core.bool
            : null,
        wadingPoolException: _json.containsKey('wadingPoolException')
            ? _json['wadingPoolException'] as core.String
            : null,
        waterPark: _json.containsKey('waterPark')
            ? _json['waterPark'] as core.bool
            : null,
        waterParkException: _json.containsKey('waterParkException')
            ? _json['waterParkException'] as core.String
            : null,
        waterslide: _json.containsKey('waterslide')
            ? _json['waterslide'] as core.bool
            : null,
        waterslideException: _json.containsKey('waterslideException')
            ? _json['waterslideException'] as core.String
            : null,
        wavePool: _json.containsKey('wavePool')
            ? _json['wavePool'] as core.bool
            : null,
        wavePoolException: _json.containsKey('wavePoolException')
            ? _json['wavePoolException'] as core.String
            : null,
      );