create static method
OperatingSystemData
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "operatingSystemData",
- String? name,
- String? arch,
- String? version,
- String? full_name,
override
return original data json
Implementation
static OperatingSystemData create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "operatingSystemData",
String? name,
String? arch,
String? version,
String? full_name,
}) {
// OperatingSystemData operatingSystemData = OperatingSystemData({
final Map operatingSystemData_data_create_json = {
"@type": special_type,
"name": name,
"arch": arch,
"version": version,
"full_name": full_name,
};
operatingSystemData_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (operatingSystemData_data_create_json.containsKey(key) == false) {
operatingSystemData_data_create_json[key] = value;
}
});
}
return OperatingSystemData(operatingSystemData_data_create_json);
}