mapToQBSession static method
Implementation
static QBSession? mapToQBSession(Map<dynamic, dynamic>? map) {
if (map == null || map.length <= 0) {
return null;
}
QBSession qbSession = QBSession();
if (map.containsKey("token")) {
qbSession.token = map["token"] as String?;
}
if (map.containsKey("expirationDate")) {
qbSession.expirationDate = map["expirationDate"] as String?;
}
if (map.containsKey("userId")) {
qbSession.userId = map["userId"] as int?;
}
if (map.containsKey("applicationId")) {
qbSession.applicationId = map["applicationId"] as int?;
}
return qbSession;
}