toJson method
Implementation
Map<String, dynamic> toJson() => {
if (room != null) 'room': room!.map((e) => e.toJson()).toList(),
if (images != null) 'images': images!.map((e) => e.toJson()).toList(),
if (emptyDirs != null) 'empty_dirs': emptyDirs!.map((e) => e.toJson()).toList(),
};