serialize method
Serialize.
Implementation
@override
void serialize(List<int> buffer) {
// Write type-id 0x41df43fc.
buffer.writeInt32(0x41df43fc);
// Write fields.
buffer.writeInt32(flags);
final localFromIdCopy = fromId;
if (localFromIdCopy != null) {
buffer.writeObject(localFromIdCopy);
}
buffer.writeDateTime(date);
buffer.writeObject(gift);
final localMessageCopy = message;
if (localMessageCopy != null) {
buffer.writeObject(localMessageCopy);
}
final localMsgIdCopy = msgId;
if (localMsgIdCopy != null) {
buffer.writeInt32(localMsgIdCopy);
}
final localSavedIdCopy = savedId;
if (localSavedIdCopy != null) {
buffer.writeInt64(localSavedIdCopy);
}
final localConvertStarsCopy = convertStars;
if (localConvertStarsCopy != null) {
buffer.writeInt64(localConvertStarsCopy);
}
final localUpgradeStarsCopy = upgradeStars;
if (localUpgradeStarsCopy != null) {
buffer.writeInt64(localUpgradeStarsCopy);
}
final localCanExportAtCopy = canExportAt;
if (localCanExportAtCopy != null) {
buffer.writeInt32(localCanExportAtCopy);
}
final localTransferStarsCopy = transferStars;
if (localTransferStarsCopy != null) {
buffer.writeInt64(localTransferStarsCopy);
}
final localCanTransferAtCopy = canTransferAt;
if (localCanTransferAtCopy != null) {
buffer.writeInt32(localCanTransferAtCopy);
}
final localCanResellAtCopy = canResellAt;
if (localCanResellAtCopy != null) {
buffer.writeInt32(localCanResellAtCopy);
}
final localCollectionIdCopy = collectionId;
if (localCollectionIdCopy != null) {
buffer.writeVectorInt32(localCollectionIdCopy);
}
final localPrepaidUpgradeHashCopy = prepaidUpgradeHash;
if (localPrepaidUpgradeHashCopy != null) {
buffer.writeString(localPrepaidUpgradeHashCopy);
}
final localDropOriginalDetailsStarsCopy = dropOriginalDetailsStars;
if (localDropOriginalDetailsStarsCopy != null) {
buffer.writeInt64(localDropOriginalDetailsStarsCopy);
}
final localGiftNumCopy = giftNum;
if (localGiftNumCopy != null) {
buffer.writeInt32(localGiftNumCopy);
}
final localCanCraftAtCopy = canCraftAt;
if (localCanCraftAtCopy != null) {
buffer.writeInt32(localCanCraftAtCopy);
}
// Finished serialization.
}