checkBarGooglePlaceIdByContributor method
Implementation
@override
Future<NetworkResponse> checkBarGooglePlaceIdByContributor(
googlePlaceId) async {
return await handleNetworkError(
proccess: () async {
Response response =
await AppClient(token: await appPrefs.getNormalToken()).get(
_MyAppEndpoint.checkBarGooglePlaceIdByContributor(),
queryParameters: {'googlePlaceId': googlePlaceId});
return NetworkResponse.fromResponse(response, value: '');
},
builder: (e) {
if (e.response != null &&
e.response!.statusCode == 400 &&
e.response!.data != null) {
return NetworkResponse.fromResponse(e.response!,
value: e.response!.data['oobrPlaceId']);
}
return NetworkResponse.withErrorRequest(e);
},
);
}