Skip to content

Commit 7c97afb

Browse files
yulingtianxiaphillwiggins
authored andcommitted
Fix save (#199)
* Fix Commit: 6ed26e1 * Update parse_encoder.dart Fix parse encoder bug. * Fix exception when sendSessionId is null. * Fix GeoPoint. * delete useless code.
1 parent 9cb5d92 commit 7c97afb

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

lib/src/objects/parse_geo_point.dart

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,12 @@ part of flutter_parse_sdk;
33
const String keyLatitude = 'latitude';
44
const String keyLongitude = 'longitude';
55

6-
class ParseGeoPoint extends ParseObject {
6+
class ParseGeoPoint {
77
/// Creates a Parse Object of type GeoPoint
8-
ParseGeoPoint(
9-
{double latitude = 0.0,
10-
double longitude = 0.0,
11-
bool debug,
12-
ParseHTTPClient client,
13-
bool autoSendSessionId})
14-
: super(keyGeoPoint) {
15-
this.latitude = latitude;
16-
this.longitude = longitude;
8+
ParseGeoPoint({this.latitude = 0.0, this.longitude = 0.0});
179

18-
_debug = isDebugEnabled(objectLevelDebug: debug);
19-
_client = client ??
20-
ParseHTTPClient(
21-
sendSessionId:
22-
autoSendSessionId ?? ParseCoreData().autoSendSessionId,
23-
securityContext: ParseCoreData().securityContext);
24-
}
10+
double latitude, longitude;
2511

26-
double get latitude => super.get<double>(keyLatitude);
27-
set latitude(double latitude) => set<double>(keyLatitude, latitude);
28-
29-
double get longitude => super.get<double>(keyLongitude);
30-
set longitude(double longitude) => set<double>(keyLongitude, longitude);
31-
32-
@override
3312
Map<String, dynamic> toJson({bool full = false, bool forApiRQ = false}) =>
3413
<String, dynamic>{
3514
'__type': 'GeoPoint',

0 commit comments

Comments
 (0)