toJson method

Map<String, dynamic> toJson()

Converts the LatLong object into JSON (latitude and longitudes are in decimal)

Implementation

Map<String, dynamic> toJson() =>
    {
      "latitude" : lat,
      "longitude" : long,
      "height" : height,
      "datum" : datum,
    };