Standard serializer that turns an entity into JSON.
Map<String, dynamic> entityToJson(Entity entity) { return entityToJsonFunction(entity); }