remove method
If isImmutable is false, or the key already exists, then allow the removal. Throw JsonObjectLiteException if we're not allowed to remove a key
Implementation
@override
dynamic remove(dynamic key) {
if (isImmutable == false || containsKey(key)) {
return _objectData.remove(key);
} else {
throw const JsonObjectLiteException('JsonObject is not extendable');
}
}