cast<R> method
Cast configuration to a new type
Implementation
ZenQueryConfig<R> cast<R>() {
if (this is ZenQueryConfig<R>) {
return this as ZenQueryConfig<R>;
}
return ZenQueryConfig<R>(
staleTime: staleTime,
cacheTime: cacheTime,
refetchOnMount: refetchOnMount,
refetchOnFocus: refetchOnFocus,
refetchOnReconnect: refetchOnReconnect,
refetchInterval: refetchInterval,
enableBackgroundRefetch: enableBackgroundRefetch,
retryCount: retryCount,
retryDelay: retryDelay,
exponentialBackoff: exponentialBackoff,
persist: persist,
fromJson: fromJson != null ? (json) => fromJson!(json) as R : null,
toJson: toJson != null ? (data) => toJson!(data as T) : null,
storage: storage,
placeholderData: placeholderData as R?,
);
}