BusinessLocation.fromJson constructor

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

Creates a BusinessLocation object from a JSON map.

Implementation

factory BusinessLocation.fromJson(Map<String, dynamic> json) {
  return BusinessLocation(
    address: json['address'],
    location:
        json['location'] != null ? Location.fromJson(json['location']) : null,
  );
}