BusinessGreetingMessage.deserialize constructor

BusinessGreetingMessage.deserialize(
  1. 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;
}