toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final ret = super.toJson();
ret['url'] = fileInfo.fileUrl;
ret['name'] = fileInfo.fileName;
ret['size'] = fileInfo.fileSize;
ret['type'] = fileInfo.mimeType;
ret.removeWhere((key, value) => value == null);
return ret;
}