toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> r = {
'authenticated': authenticated,
'session_status': status,
};
if (reason != null) {
r['reason'] = reason;
}
if (statusURL != null) {
r['status_url'] = statusURL;
}
if (token != null) {
r['session_token'] = token;
}
if (secret != null) {
r['session_secret'] = secret;
}
if (logoutURL != null) {
r['logout_url'] = logoutURL;
}
return r;
}