setSimpleObject method
Implementation
Future<bool> setSimpleObject(String objectName, Object object) {
debugPrint("ENTER setSimpleObject $objectName");
if (db != null) {
var store = StoreRef.main();
debugPrint("ENTER setSimpleObject $object");
return store.record( getObjectKey(objectName) ).put(db!, object).then((value) => value != null);
} else {
throw VasatError("DB is null or has not been initializes. Make sure openDatabase() has been called ", status: 5100);
}
}