Location.fromJson constructor
Location.fromJson(
- String source
It converts a JSON string into a Location object.
Args: source (String): The JSON string to be converted to a Location object.
Implementation
factory Location.fromJson(String source) =>
Location.fromMap(json.decode(source) as Map<String, dynamic>);