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