mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-08 19:17:49 +08:00
login/exp log
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
26
lib/models_new/login_log/list.dart
Normal file
26
lib/models_new/login_log/list.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
class LoginLogItem {
|
||||
String ip;
|
||||
int? time;
|
||||
String timeAt;
|
||||
bool? status;
|
||||
int? type;
|
||||
String geo;
|
||||
|
||||
LoginLogItem({
|
||||
required this.ip,
|
||||
this.time,
|
||||
required this.timeAt,
|
||||
this.status,
|
||||
this.type,
|
||||
required this.geo,
|
||||
});
|
||||
|
||||
factory LoginLogItem.fromJson(Map<String, dynamic> json) => LoginLogItem(
|
||||
ip: json['ip'] ?? '',
|
||||
time: json['time'] as int?,
|
||||
timeAt: json['time_at'] ?? '',
|
||||
status: json['status'] as bool?,
|
||||
type: json['type'] as int?,
|
||||
geo: json['geo'] ?? '',
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user