PhoneLeaveGroupCallPresentation.deserialize constructor

PhoneLeaveGroupCallPresentation.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhoneLeaveGroupCallPresentation.deserialize(BinaryReader reader) {
  // Read [PhoneLeaveGroupCallPresentation] fields.
  final call = reader.readObject() as InputGroupCallBase;

  // Construct [PhoneLeaveGroupCallPresentation] object.
  final returnValue = PhoneLeaveGroupCallPresentation(
    call: call,
  );

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