Check if the model has a specific attribute.
bool hasAttribute(String key) => _attributes.containsKey(key);