Location.fromJson constructor

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

Implementation

factory Location.fromJson(Map<String, dynamic> json) => Location(
      lat: json["lat"]?.toDouble(),
      lng: json["lng"]?.toDouble(),
    );