BusinessGreetingMessage.deserialize constructor
BusinessGreetingMessage.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory BusinessGreetingMessage.deserialize(BinaryReader reader) {
// Read [BusinessGreetingMessage] fields.
final shortcutId = reader.readInt32();
final recipients = reader.readObject() as BusinessRecipientsBase;
final noActivityDays = reader.readInt32();
// Construct [BusinessGreetingMessage] object.
final returnValue = BusinessGreetingMessage(
shortcutId: shortcutId,
recipients: recipients,
noActivityDays: noActivityDays,
);
// Now return the deserialized [BusinessGreetingMessage].
return returnValue;
}