copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
DeviceTokenWebPush copyWith({
String? endpoint,
String? p256dhBase64url,
String? authBase64url,
}) =>
DeviceTokenWebPush(
endpoint: endpoint ?? this.endpoint,
p256dhBase64url: p256dhBase64url ?? this.p256dhBase64url,
authBase64url: authBase64url ?? this.authBase64url,
);