deleteToken method

Future<bool> deleteToken(
  1. String token, {
  2. String deviceModel = '',
  3. String osVersion = '',
  4. num globalUserId = 0,
})

Implementation

Future<bool> deleteToken(
  String token, {
  String deviceModel = '',
  String osVersion = '',
  num globalUserId = 0,
}) async {
  return dio.post(
    '/delete-token',
    data: {
      'globalUserId': globalUserId,
      'deviceModel': deviceModel,
      'osVersion': osVersion,
    },
  ).then(
    (response) => response.data,
  );
}