Location.fromJson constructor

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

Parse from a json

Implementation

factory Location.fromJson(Map<String, dynamic> json) => Location(
  latitude: json['latitude'],
  longitude: json['longitude'],
  horizontalAccuracy: json['horizontal_accuracy'],
);