Revert "fix(mobile-app): 修复deviceName只发送后端接受的字段"

This reverts commit 1b4901ea68.
This commit is contained in:
hailin 2025-12-07 10:58:24 -08:00
parent 1b4901ea68
commit 7a0e83dac5
1 changed files with 8 additions and 3 deletions

View File

@ -33,12 +33,17 @@ class DeviceHardwareInfo {
this.isPhysicalDevice,
});
/// API
/// : model, platform, osVersion
Map<String, dynamic> toJson() => {
if (brand != null) 'brand': brand,
if (manufacturer != null) 'manufacturer': manufacturer,
if (model != null) 'model': model,
if (platform != null) 'platform': platform,
if (device != null) 'device': device,
if (product != null) 'product': product,
if (hardware != null) 'hardware': hardware,
if (osVersion != null) 'osVersion': osVersion,
if (platform != null) 'platform': platform,
if (sdkInt != null) 'sdkInt': sdkInt,
if (isPhysicalDevice != null) 'isPhysicalDevice': isPhysicalDevice,
};
@override