callPlaceDetailLegacy method

  1. @deprecated
Future<PlaceDetailLegacyResponse?> callPlaceDetailLegacy()

Implementation

@deprecated
Future<PlaceDetailLegacyResponse?> callPlaceDetailLegacy() async {
  try {
    String? result = await restApi.placeDetailLegacy(toMap());
    return result != null
        ? PlaceDetailLegacyResponse.fromMap(json.decode(result))
        : null;
  } on PlatformException catch (e) {
    return Future.error(e);
  }
}