create method
Creates a new entity with the given OID into the database. *
-
data
- the content of the entity to store.
Implementation
@override
Future? create(Entity entity, Map data) {
final String oid = entity.oid;
_cache.put(entity);
_storage[oid] = json.encode(data);
}