toMap method
Convert FolderModel to Map
Implementation
Map<String, dynamic> toMap() {
return {
'id': id,
'name': name,
'path': path,
'parent_path': parentPath,
'date_created': dateCreated,
'date_modified': dateModified,
'date_accessed': dateAccessed,
'total_size': totalSize,
'file_count': fileCount,
'directory_count': directoryCount,
'is_hidden': isHidden,
'is_read_only': isReadOnly,
'is_system': isSystem,
'folder_type': folderType.toString(),
'storage_location': storageLocation.toString(),
};
}