Location.fromJson constructor

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

Implementation

factory Location.fromJson(Map<String, dynamic> json) {
  return Location(
    lat: json['lat'] != null ? json['lat'].toDouble() : null,
    lng: json['lng'] != null ? json['lng'].toDouble() : null,
  );
}