modifyPlace method

Future<Place> modifyPlace(
  1. String sdkId,
  2. Place place
)

Implementation

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