qbSessionToMap static method
Implementation
static Map<String, Object>? qbSessionToMap(QBSession? session) {
if (session == null) {
return null;
}
Map<String, Object> map = Map();
if (session.token != null && session.token!.isNotEmpty) {
map["token"] = session.token as Object;
}
if (session.expirationDate != null && session.expirationDate!.isNotEmpty) {
map["expirationDate"] = session.expirationDate as Object;
}
if (session.userId != null && session.userId! > 0) {
map["userId"] = session.userId as Object;
}
if (session.applicationId != null && session.applicationId! > 0) {
map["applicationId"] = session.applicationId as Object;
}
return map;
}