ChannelAdminLogEventActionChangePhoto.deserialize constructor

ChannelAdminLogEventActionChangePhoto.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionChangePhoto.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionChangePhoto] fields.
  final prevPhoto = reader.readObject() as PhotoBase;
  final newPhoto = reader.readObject() as PhotoBase;

  // Construct [ChannelAdminLogEventActionChangePhoto] object.
  final returnValue = ChannelAdminLogEventActionChangePhoto(
    prevPhoto: prevPhoto,
    newPhoto: newPhoto,
  );

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