toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final country = this.country;
  final gPSPoint = this.gPSPoint;
  return {
    if (country != null) 'Country': country,
    if (gPSPoint != null) 'GPSPoint': gPSPoint,
  };
}