toJson method

Map<String, dynamic> toJson()

Implementation

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

  data['id'] = id;
  data['buildingNumber'] = buildingNumber;
  data['landmark'] = landmark;
  data['usageFrequency'] = usageFrequency;

  return data;
}