ChannelAdminLogEventActionChangeWallpaper.deserialize constructor

ChannelAdminLogEventActionChangeWallpaper.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ChannelAdminLogEventActionChangeWallpaper.deserialize(
    BinaryReader reader) {
  // Read [ChannelAdminLogEventActionChangeWallpaper] fields.
  final prevValue = reader.readObject() as WallPaperBase;
  final newValue = reader.readObject() as WallPaperBase;

  // Construct [ChannelAdminLogEventActionChangeWallpaper] object.
  final returnValue = ChannelAdminLogEventActionChangeWallpaper(
    prevValue: prevValue,
    newValue: newValue,
  );

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