copyWith method
Creates a copy of this metadata with the given fields replaced.
Implementation
DeviceMetadata copyWith({
String? model,
String? osVersion,
}) {
return DeviceMetadata(
model: model ?? this.model,
osVersion: osVersion ?? this.osVersion,
);
}