toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (commonAreasPhysicalDistancingArranged != null)
        'commonAreasPhysicalDistancingArranged':
            commonAreasPhysicalDistancingArranged!,
      if (commonAreasPhysicalDistancingArrangedException != null)
        'commonAreasPhysicalDistancingArrangedException':
            commonAreasPhysicalDistancingArrangedException!,
      if (physicalDistancingRequired != null)
        'physicalDistancingRequired': physicalDistancingRequired!,
      if (physicalDistancingRequiredException != null)
        'physicalDistancingRequiredException':
            physicalDistancingRequiredException!,
      if (safetyDividers != null) 'safetyDividers': safetyDividers!,
      if (safetyDividersException != null)
        'safetyDividersException': safetyDividersException!,
      if (sharedAreasLimitedOccupancy != null)
        'sharedAreasLimitedOccupancy': sharedAreasLimitedOccupancy!,
      if (sharedAreasLimitedOccupancyException != null)
        'sharedAreasLimitedOccupancyException':
            sharedAreasLimitedOccupancyException!,
      if (wellnessAreasHavePrivateSpaces != null)
        'wellnessAreasHavePrivateSpaces': wellnessAreasHavePrivateSpaces!,
      if (wellnessAreasHavePrivateSpacesException != null)
        'wellnessAreasHavePrivateSpacesException':
            wellnessAreasHavePrivateSpacesException!,
    };