asDBObject<D> function
Implementation
D asDBObject<D>(NUIDBEntityMapper<D> entity, dynamic value){
if(value == null) return null;
if(value is Map){
return entity.toEntity(value);
}
return entity.toEntity(jsonDecode(value));
}