Map<String, dynamic> toMap() { // ignore: unnecessary_cast return { 'lat': this.lat, 'lon': this.lon, } as Map<String, dynamic>; }