serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x86e18161.
buffer.writeInt32(0x86e18161);
// Write fields.
buffer.writeInt64(id);
buffer.writeInt32(flags);
buffer.writeString(question);
buffer.writeVectorObject(answers);
final localClosePeriodCopy = closePeriod;
if (localClosePeriodCopy != null) {
buffer.writeInt32(localClosePeriodCopy);
}
final localCloseDateCopy = closeDate;
if (localCloseDateCopy != null) {
buffer.writeDateTime(localCloseDateCopy);
}
// Finished serialization.
}