Housekeeping.fromJson constructor Null safety

Housekeeping.fromJson(
  1. Map _json
)

Implementation

Housekeeping.fromJson(core.Map _json)
    : this(
        dailyHousekeeping: _json.containsKey('dailyHousekeeping')
            ? _json['dailyHousekeeping'] as core.bool
            : null,
        dailyHousekeepingException:
            _json.containsKey('dailyHousekeepingException')
                ? _json['dailyHousekeepingException'] as core.String
                : null,
        housekeepingAvailable: _json.containsKey('housekeepingAvailable')
            ? _json['housekeepingAvailable'] as core.bool
            : null,
        housekeepingAvailableException:
            _json.containsKey('housekeepingAvailableException')
                ? _json['housekeepingAvailableException'] as core.String
                : null,
        turndownService: _json.containsKey('turndownService')
            ? _json['turndownService'] as core.bool
            : null,
        turndownServiceException:
            _json.containsKey('turndownServiceException')
                ? _json['turndownServiceException'] as core.String
                : null,
      );