identify<TData> method Null safety

String? identify<TData>(
  1. TData data
)

Returns the canonical ID for a given object or reference.

Implementation

String? identify<TData>(TData data) => utils.identify(
      // TODO: don't cast to dynamic
      (data as dynamic)?.toJson(),
      typePolicies: typePolicies,
      dataIdFromObject: dataIdFromObject,
    );