writeValue method
Serializes a JavaScript delegate object into the buffer.
@param value JavaScript delegate object
Implementation
@override
bool writeValue(dynamic value) {
if (super.writeValue(value)) {
return true;
}
if (value is VoltronArray) {
assignId(value);
_writeJSArray(value);
} else if (value is VoltronMap) {
assignId(value);
_writeJSObject(value);
} else {
return false;
}
return true;
}