has method

bool has(
  1. String key
)

Checks if a key exists.

Implementation

bool has(String key) {
  if (_parsedBody == null) {
    throw StateError('Body not parsed yet. Call parse() first.');
  }
  return _parsedBody!.containsKey(key);
}