Files
PiliPlus/lib/models_new/login_devices/device.dart
bggRGjQaUbCoE 7a5662c6ca feat: login devices
Closes #1140

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-08-28 16:07:14 +08:00

33 lines
812 B
Dart

class LoginDevice {
int? mid;
String? localId;
String? deviceName;
String? devicePlatform;
bool? isCurrentDevice;
String? latestLoginAt;
String? source;
int? origin;
LoginDevice({
this.mid,
this.localId,
this.deviceName,
this.devicePlatform,
this.isCurrentDevice,
this.latestLoginAt,
this.source,
this.origin,
});
factory LoginDevice.fromJson(Map<String, dynamic> json) => LoginDevice(
mid: json['mid'] as int?,
localId: json['local_id'] as String?,
deviceName: json['device_name'] as String?,
devicePlatform: json['device_platform'] as String?,
isCurrentDevice: json['is_current_device'] as bool?,
latestLoginAt: json['latest_login_at'] as String?,
source: json['source'] as String?,
origin: json['origin'] as int?,
);
}