ChannelParticipant.deserialize constructor

ChannelParticipant.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelParticipant.deserialize(BinaryReader reader) {
  // Read [ChannelParticipant] fields.
  final userId = reader.readInt64();
  final date = reader.readDateTime();

  // Construct [ChannelParticipant] object.
  final returnValue = ChannelParticipant(
    userId: userId,
    date: date,
  );

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