PhysicalDistancing.fromJson constructor Null safety

PhysicalDistancing.fromJson(
  1. Map _json
)

Implementation

PhysicalDistancing.fromJson(core.Map _json)
    : this(
        commonAreasPhysicalDistancingArranged:
            _json.containsKey('commonAreasPhysicalDistancingArranged')
                ? _json['commonAreasPhysicalDistancingArranged'] as core.bool
                : null,
        commonAreasPhysicalDistancingArrangedException: _json
                .containsKey('commonAreasPhysicalDistancingArrangedException')
            ? _json['commonAreasPhysicalDistancingArrangedException']
                as core.String
            : null,
        physicalDistancingRequired:
            _json.containsKey('physicalDistancingRequired')
                ? _json['physicalDistancingRequired'] as core.bool
                : null,
        physicalDistancingRequiredException:
            _json.containsKey('physicalDistancingRequiredException')
                ? _json['physicalDistancingRequiredException'] as core.String
                : null,
        safetyDividers: _json.containsKey('safetyDividers')
            ? _json['safetyDividers'] as core.bool
            : null,
        safetyDividersException: _json.containsKey('safetyDividersException')
            ? _json['safetyDividersException'] as core.String
            : null,
        sharedAreasLimitedOccupancy:
            _json.containsKey('sharedAreasLimitedOccupancy')
                ? _json['sharedAreasLimitedOccupancy'] as core.bool
                : null,
        sharedAreasLimitedOccupancyException:
            _json.containsKey('sharedAreasLimitedOccupancyException')
                ? _json['sharedAreasLimitedOccupancyException'] as core.String
                : null,
        wellnessAreasHavePrivateSpaces:
            _json.containsKey('wellnessAreasHavePrivateSpaces')
                ? _json['wellnessAreasHavePrivateSpaces'] as core.bool
                : null,
        wellnessAreasHavePrivateSpacesException: _json
                .containsKey('wellnessAreasHavePrivateSpacesException')
            ? _json['wellnessAreasHavePrivateSpacesException'] as core.String
            : null,
      );