currentPosition method

Future<Map<String, dynamic>> currentPosition(
  1. String tag
)

Implementation

Future<Map<String, dynamic>> currentPosition(String tag) async {
  Response resp = await _userProvider.currentPosition(tag);
  dynamic body = resp.body;

  Map<String, dynamic> convertBody = convertUtf8ToObject(body);
  ServerRespDto serverRespDto = ServerRespDto.fromJson(convertBody);

  Map<String, dynamic> data = serverRespDto.data;
  return data;
}