Location.fromJson constructor

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

Implementation

factory Location.fromJson(Map<String, Object?> json) => Location(
      latitude: json['latitude'] as double,
      longitude: json['longitude'] as double,
      altitude: json['altitude'] as double?,
      relevantText: json['relevantText'] as String?,
    );