Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Delete unused model

ashilkn01a6d107aa34
diff --git a/lib/models/search/location_api_response.dart b/lib/models/search/location_api_response.dart
deleted file mode 100644
index e8be374970..0000000000
--- a/lib/models/search/location_api_response.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-class LocationApiResponse {
- final List<LocationDataFromResponse> results;
- LocationApiResponse({
- required this.results,
- });
-
- LocationApiResponse copyWith({
- required List<LocationDataFromResponse> results,
- }) {
- return LocationApiResponse(
- results: results,
- );
- }
-
- factory LocationApiResponse.fromMap(Map<String, dynamic> map) {
- return LocationApiResponse(
- results: (map['results']) == null
- ? []
- : List<LocationDataFromResponse>.from(
- (map['results']).map(
- (x) =>
- LocationDataFromResponse.fromMap(x as Map<String, dynamic>),
- ),
- ),
- );
- }
-}
-
-class LocationDataFromResponse {
- final String place;
- final List<double> bbox;
- LocationDataFromResponse({
- required this.place,
- required this.bbox,
- });
-
- factory LocationDataFromResponse.fromMap(Map<String, dynamic> map) {
- return LocationDataFromResponse(
- place: map['place'] as String,
- bbox: List<double>.from(
- (map['bbox']),
- ),
- );
- }
-}