-mRemove unused collection.toMap

This commit is contained in:
Neeraj Gupta 2023-05-23 10:35:19 +05:30
parent e2e1d7ef13
commit 399f4b44eb
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -178,24 +178,6 @@ class Collection {
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) {
if (map == null) return null;
final sharees = (map['sharees'] == null || map['sharees'].length == 0)