mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Add equals and hashcode to Asset
This commit is contained in:
		
				
					committed by
					
						 Fynn Petersen-Frey
						Fynn Petersen-Frey
					
				
			
			
				
	
			
			
			
						parent
						
							1633af7af6
						
					
				
				
					commit
					0deb8f4090
				
			| @@ -50,6 +50,15 @@ class Asset { | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   @override | ||||
|   bool operator ==(other) { | ||||
|     if (other is! Asset) return false; | ||||
|     return id == other.id && isLocal == other.isLocal; | ||||
|   } | ||||
|  | ||||
|   @override | ||||
|   int get hashCode => id.hashCode; | ||||
|  | ||||
|   Map<String, dynamic> toJson() { | ||||
|     final json = <String, dynamic>{}; | ||||
|     if (isLocal) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user