create static method
return original data json
Implementation
static CpuData create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "cpuData",
String? name,
}) {
// CpuData cpuData = CpuData({
final Map cpuData_data_create_json = {
"@type": special_type,
"name": name,
};
cpuData_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (cpuData_data_create_json.containsKey(key) == false) {
cpuData_data_create_json[key] = value;
}
});
}
return CpuData(cpuData_data_create_json);
}