Location.fromJson constructor

Location.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Location.fromJson(Map<String, dynamic> json) {

  if (json["lat"] != null) {
    lat = double.parse(json["lat"].toString());
  }
  if (json["lng"] != null) {
    lng = double.parse(json["lng"].toString());
  }
}