toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accessibility != null) 'accessibility': accessibility!,
      if (activities != null) 'activities': activities!,
      if (allUnits != null) 'allUnits': allUnits!,
      if (business != null) 'business': business!,
      if (commonLivingArea != null) 'commonLivingArea': commonLivingArea!,
      if (connectivity != null) 'connectivity': connectivity!,
      if (families != null) 'families': families!,
      if (foodAndDrink != null) 'foodAndDrink': foodAndDrink!,
      if (guestUnits != null) 'guestUnits': guestUnits!,
      if (healthAndSafety != null) 'healthAndSafety': healthAndSafety!,
      if (housekeeping != null) 'housekeeping': housekeeping!,
      if (metadata != null) 'metadata': metadata!,
      if (name != null) 'name': name!,
      if (parking != null) 'parking': parking!,
      if (pets != null) 'pets': pets!,
      if (policies != null) 'policies': policies!,
      if (pools != null) 'pools': pools!,
      if (property != null) 'property': property!,
      if (services != null) 'services': services!,
      if (someUnits != null) 'someUnits': someUnits!,
      if (sustainability != null) 'sustainability': sustainability!,
      if (transportation != null) 'transportation': transportation!,
      if (wellness != null) 'wellness': wellness!,
    };