extractHeaderJsonValue function

Object? extractHeaderJsonValue(
  1. Map<String, String> headers,
  2. String name
)

Implementation

Object? extractHeaderJsonValue(Map<String, String> headers, String name) {
  final header = extractHeaderStringValue(headers, name);
  if (header == null) return null;
  return jsonDecode(utf8.decode(base64Decode(header))) as Object?;
}