create static method
SystemInformationData
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "systemInformationData",
- String? title,
- String? os,
- String? platform_type,
- String? arch,
- String? host,
- String? kernel,
- String? uptime,
- String? shell,
- Object? resolution,
- Object? de,
- String? wm,
- String? wm_theme,
- String? theme,
- String? icons,
- String? terminal,
- String? cpu,
- String? gpu,
- String? network,
- String? disk,
- String? power,
- String? ram_total,
- String? ram_available,
- String? ram_usage,
- String? ram_cached,
- String? swap_total,
- String? swap_available,
- String? swap_cache,
- String? ram_commited,
- String? ram_swap_total,
- String? version,
- String? device_name,
- String? total_bandwith_download,
- String? total_bandwith_upload,
- String? total_bandwith,
- String? ram_usage_by_this_program,
- String? executable_type,
- String? uptime_program,
override
return original data json
Implementation
static SystemInformationData create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "systemInformationData",
String? title,
String? os,
String? platform_type,
String? arch,
String? host,
String? kernel,
String? uptime,
String? shell,
Object? resolution,
Object? de,
String? wm,
String? wm_theme,
String? theme,
String? icons,
String? terminal,
String? cpu,
String? gpu,
String? network,
String? disk,
String? power,
String? ram_total,
String? ram_available,
String? ram_usage,
String? ram_cached,
String? swap_total,
String? swap_available,
String? swap_cache,
String? ram_commited,
String? ram_swap_total,
String? version,
String? device_name,
String? total_bandwith_download,
String? total_bandwith_upload,
String? total_bandwith,
String? ram_usage_by_this_program,
String? executable_type,
String? uptime_program,
}) {
// SystemInformationData systemInformationData = SystemInformationData({
final Map systemInformationData_data_create_json = {
"@type": special_type,
"title": title,
"os": os,
"platform_type": platform_type,
"arch": arch,
"host": host,
"kernel": kernel,
"uptime": uptime,
"shell": shell,
"resolution": resolution,
"de": de,
"wm": wm,
"wm_theme": wm_theme,
"theme": theme,
"icons": icons,
"terminal": terminal,
"cpu": cpu,
"gpu": gpu,
"network": network,
"disk": disk,
"power": power,
"ram_total": ram_total,
"ram_available": ram_available,
"ram_usage": ram_usage,
"ram_cached": ram_cached,
"swap_total": swap_total,
"swap_available": swap_available,
"swap_cache": swap_cache,
"ram_commited": ram_commited,
"ram_swap_total": ram_swap_total,
"version": version,
"device_name": device_name,
"total_bandwith_download": total_bandwith_download,
"total_bandwith_upload": total_bandwith_upload,
"total_bandwith": total_bandwith,
"ram_usage_by_this_program": ram_usage_by_this_program,
"executable_type": executable_type,
"uptime_program": uptime_program,
};
systemInformationData_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (systemInformationData_data_create_json.containsKey(key) == false) {
systemInformationData_data_create_json[key] = value;
}
});
}
return SystemInformationData(systemInformationData_data_create_json);
}