Implementation
AssetMetadata copyWith({
String? assetTag,
DateTime? lastInspection,
DateTime? nextMaintenance,
String? location,
String? installedBy,
DateTime? installationDate,
List<FieldMeasurement>? fieldMeasurements,
}) {
return AssetMetadata(
assetTag: assetTag ?? this.assetTag,
lastInspection: lastInspection ?? this.lastInspection,
nextMaintenance: nextMaintenance ?? this.nextMaintenance,
location: location ?? this.location,
installedBy: installedBy ?? this.installedBy,
installationDate: installationDate ?? this.installationDate,
fieldMeasurements: fieldMeasurements ?? this.fieldMeasurements,
);
}