func (box *TaskBox) PutAsync(object *Task) (uint64, error) {
	return box.Box.PutAsync(object)
}
PutAsync asynchronously inserts/updates a single object.
Deprecated: use box.Async().Put() instead
package model
import (
	"errors"
	"github.com/google/flatbuffers/go"
	"github.com/objectbox/objectbox-go/objectbox"
	"github.com/objectbox/objectbox-go/objectbox/fbutils"
)
type task_EntityInfo struct {
	objectbox.Entity
	Uid uint64
}
var TaskBinding = task_EntityInfo{
	Entity: objectbox.Entity{
		Id: 1,
	},
	Uid: 1306759095002958910,
}
var Task_ = struct {
	Id           *objectbox.PropertyUint64
	Text         *objectbox.PropertyString
	DateCreated  *objectbox.PropertyInt64
	DateFinished *objectbox.PropertyInt64
}{
	Id: &objectbox.PropertyUint64{
		BaseProperty: &objectbox.BaseProperty{
			Id:     1,
			Entity: &TaskBinding.Entity,
		},
	},
	Text: &objectbox.PropertyString{
		BaseProperty: &objectbox.BaseProperty{
			Id:     2,
			Entity: &TaskBinding.Entity,
		},
	},
	DateCreated: &objectbox.PropertyInt64{
		BaseProperty: &objectbox.BaseProperty{
			Id:     3,
			Entity: &TaskBinding.Entity,
		},
	},
	DateFinished: &objectbox.PropertyInt64{
		BaseProperty: &objectbox.BaseProperty{
			Id:     4,
			Entity: &TaskBinding.Entity,
		},
	},
}
func (task_EntityInfo) GeneratorVersion() int {
	return 6
}
func (task_EntityInfo) AddToModel(model *objectbox.Model) {
	model.Entity("Task", 1, 1306759095002958910)
	model.Property("Id", 6, 1, 2193439623591184445)
	model.PropertyFlags(1)
	model.Property("Text", 9, 2, 6177929178231325611)
	model.Property("DateCreated", 6, 3, 9141374017424160113)
	model.Property("DateFinished", 6, 4, 8083684673086871702)
	model.EntityLastPropertyId(4, 8083684673086871702)
}
func (task_EntityInfo) GetId(object interface{}) (uint64, error) {
	return object.(*Task).Id, nil
}
func (task_EntityInfo) SetId(object interface{}, id uint64) error {
	object.(*Task).Id = id
	return nil
}
func (task_EntityInfo) PutRelated(ob *objectbox.ObjectBox, object interface{}, id uint64) error {
	return nil
}
func (task_EntityInfo) Flatten(object interface{}, fbb *flatbuffers.Builder, id uint64) error {
	obj := object.(*Task)
	var offsetText = fbutils.CreateStringOffset(fbb, obj.Text)
	fbb.StartObject(4)
	fbutils.SetUint64Slot(fbb, 0, id)
	fbutils.SetUOffsetTSlot(fbb, 1, offsetText)
	fbutils.SetInt64Slot(fbb, 2, obj.DateCreated)
	fbutils.SetInt64Slot(fbb, 3, obj.DateFinished)
	return nil
}
func (task_EntityInfo) Load(ob *objectbox.ObjectBox, bytes []byte) (interface{}, error) {
	if len(bytes) == 0 {  
		return nil, errors.New("can't deserialize an object of type 'Task' - no data received")
	}
	var table = &flatbuffers.Table{
		Bytes: bytes,
		Pos:   flatbuffers.GetUOffsetT(bytes),
	}
	var propId = table.GetUint64Slot(4, 0)
	return &Task{
		Id:           propId,
		Text:         fbutils.GetStringSlot(table, 6),
		DateCreated:  fbutils.GetInt64Slot(table, 8),
		DateFinished: fbutils.GetInt64Slot(table, 10),
	}, nil
}
func (task_EntityInfo) MakeSlice(capacity int) interface{} {
	return make([]*Task, 0, capacity)
}
func (task_EntityInfo) AppendToSlice(slice interface{}, object interface{}) interface{} {
	if object == nil {
		return append(slice.([]*Task), nil)
	}
	return append(slice.([]*Task), object.(*Task))
}
type TaskBox struct {
	*objectbox.Box
}
func BoxForTask(ob *objectbox.ObjectBox) *TaskBox {
	return &TaskBox{
		Box: ob.InternalBox(1),
	}
}
func (box *TaskBox) Put(object *Task) (uint64, error) {
	return box.Box.Put(object)
}
func (box *TaskBox) Insert(object *Task) (uint64, error) {
	return box.Box.Insert(object)
}
func (box *TaskBox) Update(object *Task) error {
	return box.Box.Update(object)
}