toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accessibility != null) 'accessibility': accessibility!,
      if (eating != null) 'eating': eating!,
      if (features != null) 'features': features!,
      if (layout != null) 'layout': layout!,
      if (sleeping != null) 'sleeping': sleeping!,
    };