getPlace method

Future<Place> getPlace(
  1. String sdkId,
  2. String placeId
)

Implementation

Future<Place> getPlace(String sdkId, String placeId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'PlaceApi.getPlace',
		{
			"sdkId": sdkId,
			"placeId": jsonEncode(placeId),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getPlace");
	final parsedResJson = jsonDecode(res);
	return Place.fromJSON(parsedResJson);
}