create static method

SystemInfoFetchData create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "systemInfoFetchData",
  3. String? title,
  4. String? os,
  5. String? platform_type,
  6. String? arch,
  7. String? host,
  8. String? kernel,
  9. String? uptime,
  10. String? shell,
  11. Object? resolution,
  12. Object? de,
  13. String? wm,
  14. String? wm_theme,
  15. String? theme,
  16. String? icons,
  17. String? terminal,
  18. String? cpu,
  19. String? gpu,
  20. String? network,
  21. String? disk,
  22. String? power,
  23. String? ram_total,
  24. String? ram_available,
  25. String? ram_usage,
  26. String? ram_cached,
  27. String? swap_total,
  28. String? swap_available,
  29. String? swap_cache,
  30. String? ram_commited,
  31. String? ram_swap_total,
  32. String? version,
  33. String? device_name,
  34. String? total_bandwith_download,
  35. String? total_bandwith_upload,
  36. String? total_bandwith,
  37. String? ram_usage_by_this_program,
  38. String? executable_type,
  39. String? uptime_program,
})
override

return original data json

Implementation

static SystemInfoFetchData create({
            bool schemeUtilsIsSetDefaultData = false,

  String special_type = "systemInfoFetchData",
  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,
})  {
  // SystemInfoFetchData systemInfoFetchData = SystemInfoFetchData({
final Map systemInfoFetchData_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,


};


        systemInfoFetchData_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (systemInfoFetchData_data_create_json.containsKey(key) == false) {
        systemInfoFetchData_data_create_json[key] = value;
      }
    });
  }
return SystemInfoFetchData(systemInfoFetchData_data_create_json);


    }