The mapping method to calculate the hash of value.
value
@override int hash(T value, MappingContext context) => value.hashCode;