Map<String, dynamic> toJson() { return { 'device': device, 'os': os, 'screenResolution': screenResolution, 'networkType': networkType, 'batteryLevel': batteryLevel, }; }