hash property
String
get
hash
Returns the SHA-256 hash of the serialized payload.
This hash is used to deduplicate and look up queue jobs by payload identity.
Example:
print(job.hash);
Implementation
String get hash {
final canonicalJson = jsonEncode((payload));
final bytes = utf8.encode(canonicalJson);
return sha256.convert(bytes).toString();
}