FoundStory.deserialize constructor
FoundStory.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory FoundStory.deserialize(BinaryReader reader) {
// Read [FoundStory] fields.
final peer = reader.readObject() as PeerBase;
final story = reader.readObject() as StoryItemBase;
// Construct [FoundStory] object.
final returnValue = FoundStory(peer: peer, story: story);
// Now return the deserialized [FoundStory].
return returnValue;
}