-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not convert cubeSession into jsonString using json.encode().. #50
Comments
@wrteam-priyansh thank you for reporting this issue, we will fix it in the next version of our SDK |
@TatankaConCube i have solved this issue by converting DateTime into toIso8601String |
it does not completely resolve your issue, in this case, the field |
Ok |
Or you can add it manually to your |
Yes I have added manually |
today we released a new version, which contains the fix for your issue, please try it. If your issue was resolved, please close this ticket. |
In order to save cubeSession into local storage i need to convert it into jsonString..
Here is my code :
Map<String,dynamic> jsonSession = cubeSession.toJson();
String jsonString = json.encode(jsonSession)
getting following error
[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Converting object to an encodable object failed: Instance of 'CubeUser'
The text was updated successfully, but these errors were encountered: