Location.fromString constructor

Location.fromString(
  1. String data
)

Implementation

factory Location.fromString(String data) {
  return Location.fromJson(jsonDecode(data.substring(data.indexOf('(') + 1, data.lastIndexOf(')'))));
}