Encodes a nullable num value for the given key or id.
void encodeNumOrNull(String key, num? value, {int? id});