encodeAnnotation method
Implementation
Uint8List encodeAnnotation(String ann) {
if (ann == 'query') {
return Uint8List.fromList([1]);
} else if (ann == 'oneway') {
return Uint8List.fromList([2]);
} else {
throw 'Illeagal function annotation';
}
}