LoginSession.fromJson constructor
LoginSession.fromJson(
- Map<String, dynamic> json
)
Implementation
LoginSession.fromJson(Map<String, dynamic> json) {
if (json["id"] is String) this.id = json["id"];
if (json["ip"] is String) this.ip = json["ip"];
if (json["app"] is String) this.app = json["app"];
if (json["os"] is String) this.os = json["os"];
if (json["device"] is String) this.device = json["device"];
if (json["loginAttemptAt"] is int)
this.loginAttemptAt = json["loginAttemptAt"];
if (json["loginSuccessAt"] is int)
this.loginSuccessAt = json["loginSuccessAt"];
if (json["allowPrivacyType"] is int)
this.allowPrivacyType = json["allowPrivacyType"];
if (json["platformId"] is int) this.platformId = json["platformId"];
if (json["platformLabel"] is String)
this.platformLabel = json["platformLabel"];
if (json["logoutAt"] is int) this.logoutAt = json["logoutAt"];
if (json["revokedAt"] is int) this.revokedAt = json["revokedAt"];
if (json["logoUrl"] is int) this.logoUrl = json["logoUrl"];
}