submitKyc method
Submit kyc
Implementation
Future submitKyc() async {
final dio = apiClient();
Response response;
try {
var data = dio.then((value) async {
response = await value.get(UrlResources.submitScan);
if (response.data['isSuccess']) {
return response.data;
} else {
throw Exception("failed");
}
}).catchError((e) {
throw Exception("failed");
});
return data;
} catch (e) {
rethrow;
}
}