toReference method Null safety

Map<String, dynamic> toReference(
  1. Map<String, dynamic> object
)

Returns a reference for the given object

Implementation

Map<String, dynamic> toReference(Map<String, dynamic> object) => {
      _config.referenceKey: resolveDataId(
        data: object,
        typePolicies: _config.typePolicies,
        dataIdFromObject: _config.dataIdFromObject,
      )
    };