fromJson static method

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

Implementation

static BusinessLocation? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return BusinessLocation(
    location: Location.fromJson(tdMapFromJson(json['location'])),
    address: (json['address'] as String?) ?? '',
  );
}