copyWith method

DeviceProductData copyWith({
  1. String? modelId,
  2. String? manufacturerName,
  3. String? productName,
  4. DeviceArchetype? productArchetype,
  5. bool? isCertified,
  6. String? softwareVersion,
  7. String? hardwarePlatformType,
})

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,
  );
}