Map<String, dynamic> toJson() { final creationInfo = this.creationInfo; final path = this.path; return { if (creationInfo != null) 'CreationInfo': creationInfo, if (path != null) 'Path': path, }; }