valueAsBytes<T extends List<int>?> method

T valueAsBytes<T extends List<int>?>(
  1. K key, {
  2. bool allowHex = true,
  3. StringEncoding? encoding,
})

Implementation

T valueAsBytes<T extends List<int>?>(K key,
    {bool allowHex = true, StringEncoding? encoding}) {
  final value = _checkItem<T>(key);
  if (value == null) return value as T;
  return JsonParser.valueAsBytes<T>(value,
      allowHex: allowHex, encoding: encoding);
}