Backward-compatible way to get the URL if you treat this as a string.
@override String toString() => url ?? "";