getProfile method

Future<Map<String, dynamic>?> getProfile()

Returns your profile information, bank card, bank account, verifications, profile settings and summary of your transaction statistics.

Implementation

Future<Map<String, dynamic>?> getProfile() async {
  var url = Uri.https(basePath, '/users/profile');

  var response = await client.post(url, headers: headers);

  return jsonDecode(response.body);
}