Decodes the data for the given key or id as a nullable num value.
num? decodeNumOrNull(String key, {int? id});