contains<T> method

bool contains<T>(
  1. String key
)

Returns true if map contains the given key. If a generic parameter is specified, then the value is also checked against the type of the parameter.

Implementation

bool contains<T>(String key) {
  final result = _jsonMap.containsKey(key);
  return result && _jsonMap[key] is T;
}