getAccount method
Get the user account
Many of Nakama’s features are accessible with an authenticated session, like fetching a user account.
Implementation
@override
Future<model.Account> getAccount(model.Session session) async {
_session = session;
final res = await _api.v2AccountGet();
return Account.fromJson(res.body!.toJson());
}