toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  if (lat != null) {
    data['lat'] = lat;
  }
  if (lng != null) {
    data['lng'] = lng;
  }

  return data;
}