浏览代码

-mRemove unused collection.toMap

Neeraj Gupta 2 年之前
父节点
当前提交
399f4b44eb
共有 1 个文件被更改,包括 0 次插入18 次删除
  1. 0 18
      lib/models/collection.dart

+ 0 - 18
lib/models/collection.dart

@@ -178,24 +178,6 @@ class Collection {
     return result;
     return result;
   }
   }
 
 
-  Map<String, dynamic> toMap() {
-    return {
-      'id': id,
-      'owner': owner?.toMap(),
-      'encryptedKey': encryptedKey,
-      'keyDecryptionNonce': keyDecryptionNonce,
-      'name': name,
-      'encryptedName': encryptedName,
-      'nameDecryptionNonce': nameDecryptionNonce,
-      'type': typeToString(type),
-      'attributes': attributes.toMap(),
-      'sharees': sharees?.map((x) => x?.toMap()).toList(),
-      'publicURLs': publicURLs?.map((x) => x?.toMap()).toList(),
-      'updationTime': updationTime,
-      'isDeleted': isDeleted,
-    };
-  }
-
   static fromMap(Map<String, dynamic>? map) {
   static fromMap(Map<String, dynamic>? map) {
     if (map == null) return null;
     if (map == null) return null;
     final sharees = (map['sharees'] == null || map['sharees'].length == 0)
     final sharees = (map['sharees'] == null || map['sharees'].length == 0)