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