updateUserMedia method
Future<Response>
updateUserMedia(
{ - required dynamic socialMedia,
- required dynamic userId,
})
Implementation
Future<http.Response> updateUserMedia(
{required socialMedia, required userId}) {
var media = json.decode(socialMedia);
var data = json.encode({
"userId": userId,
"socialMedia": media,
});
return put(Uri.parse('$apiURL/users/update'),
headers: {
"token":
"cnejwi8c9wehnd8fchni2x239jxexnjx2n23i8xn3oifr0cwd32fjnrf453vreve",
"content-type": 'application/json',
},
body: data);
}