mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	replace usage of AssetResponseDto with Asset Add new class ExifInfo to store data from ExifResponseDto
		
			
				
	
	
		
			12 lines
		
	
	
		
			308 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			308 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| extension DurationExtension on String {
 | |
|   Duration toDuration() {
 | |
|     final parts =
 | |
|         split(':').map((e) => double.parse(e).toInt()).toList(growable: false);
 | |
|     return Duration(hours: parts[0], minutes: parts[1], seconds: parts[2]);
 | |
|   }
 | |
| 
 | |
|   double? toDouble() {
 | |
|     return double.tryParse(this);
 | |
|   }
 | |
| }
 |