Merge remote-tracking branch 'origin/fatima' into fatima

fatima
Fatimah Alshammari 4 years ago
commit b9798fc014

@ -33,7 +33,7 @@ class ProfileApiClent {
Future<MResponse> serviceProviderDocumentsUpdate(List<DocumentData>? documents) async {
List<Map<String, dynamic>> map = [];
for (int i = 0; i < documents!.length; i++) {
if(documents[i].document!=null){
if (documents[i].document != null) {
var postParams = {
"id": documents[i].id,
"serviceProviderID": documents[i].serviceProviderId,
@ -44,10 +44,9 @@ class ProfileApiClent {
};
map.add(postParams);
}
}
String t=AppState().getUser.data!.accessToken ?? "";
print("tokeen "+t);
String t = AppState().getUser.data!.accessToken ?? "";
print("tokeen " + t);
return await ApiClient().postJsonForObject((json) => MResponse.fromJson(json), ApiConsts.ServiceProviderDocument_Update, map, token: t);
}
}

Loading…
Cancel
Save