CurrentLocation.fromJson constructor

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

Implementation

factory CurrentLocation.fromJson(Map<String, dynamic> json) {
  return CurrentLocation(
      latitude: json['latitude'],
      longitude: json['longitude'],
      provider: json['provider'],
      speed: json['speed'],
      bearing: json['bearing'],
      altitude: json['altitude'],
      accuracy: json['accuracy'],
      speedAccuracyMetersPerSecond: json['speedAccuracyMetersPerSecond']);
}