jsonToObj static method
The function converts a JSON object into a Location object by extracting the necessary values from the JSON. @param {Map<String, dynamic>} json - A map containing key-value pairs where the keys are strings and the values can be of any type. @returns an instance of the Location class.
Implementation
static Location jsonToObj(Map<String, dynamic> json) {
return Location(
json['date'] as int,
json['latitude'] as double,
json['locationdescription'] as String,
json['locationid'] as String,
json['longitude'] as double,
);
}