RecentMeUrlChat.deserialize constructor

RecentMeUrlChat.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory RecentMeUrlChat.deserialize(BinaryReader reader) {
  // Read [RecentMeUrlChat] fields.
  final url = reader.readString();
  final chatId = reader.readInt64();

  // Construct [RecentMeUrlChat] object.
  final returnValue = RecentMeUrlChat(
    url: url,
    chatId: chatId,
  );

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