toDatastoreEntity method
Implementation
@override
ds.Entity toDatastoreEntity(Model model) {
try {
var modelDescription = _modelDescriptionForType(model.runtimeType)!;
return modelDescription.encodeModel(this, model);
} catch (error, stack) {
throw ArgumentError('Error while encoding entity ($error, $stack).');
}
}