Location.fromJson constructor

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

Creates a new instance of Location from a JSON object.

The JSON object should contain keys that correspond to the parameters of Location.

Implementation

factory Location.fromJson(Map<String, dynamic> json) {
  return Location(
    resolveAvailability: json['resolveAvailability'],
    displayName: json['displayName'],
    locationEmailAddress: json['locationEmailAddress'],
    address: Address.fromJson(json['address']),
    coordinates: GeoCoordinates.fromJson(json['coordinates']),
  );
}