PageBlockAuthorDate.deserialize constructor

PageBlockAuthorDate.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PageBlockAuthorDate.deserialize(BinaryReader reader) {
  // Read [PageBlockAuthorDate] fields.
  final author = reader.readObject() as RichTextBase;
  final publishedDate = reader.readDateTime();

  // Construct [PageBlockAuthorDate] object.
  final returnValue = PageBlockAuthorDate(
    author: author,
    publishedDate: publishedDate,
  );

  // Now return the deserialized [PageBlockAuthorDate].
  return returnValue;
}