serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x1bd54456.
buffer.writeInt32(0x1bd54456);
// Write fields.
buffer.writeInt32(flags);
buffer.writeInt64(userId);
buffer.writeDateTime(date);
final localSubscriptionUntilDateCopy = subscriptionUntilDate;
if (localSubscriptionUntilDateCopy != null) {
buffer.writeDateTime(localSubscriptionUntilDateCopy);
}
final localRankCopy = rank;
if (localRankCopy != null) {
buffer.writeString(localRankCopy);
}
// Finished serialization.
}