copyWith method
Returns a copy of this object with its field values replaced by the ones provided to this method.
Implementation
DeviceProductData copyWith({
String? modelId,
String? manufacturerName,
String? productName,
DeviceArchetype? productArchetype,
bool? isCertified,
String? softwareVersion,
String? hardwarePlatformType,
}) {
return DeviceProductData(
modelId: modelId ?? this.modelId,
manufacturerName: manufacturerName ?? this.manufacturerName,
productName: productName ?? this.productName,
productArchetype: productArchetype ?? this.productArchetype,
isCertified: isCertified ?? this.isCertified,
softwareVersion: softwareVersion ?? this.softwareVersion,
hardwarePlatformType: hardwarePlatformType ?? this.hardwarePlatformType,
);
}