Location.fromJson constructor

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

Implementation

factory Location.fromJson(Map<String, dynamic> json) {
  return Location._(
    type: json['type'],
    lat: json['lat'],
    lon: json['lon'],
    originalIndex: json['original_index'],
  );
}