PhoneAcceptCall.deserialize constructor

PhoneAcceptCall.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhoneAcceptCall.deserialize(BinaryReader reader) {
  // Read [PhoneAcceptCall] fields.
  final peer = reader.readObject() as InputPhoneCallBase;
  final gB = reader.readBytes();
  final protocol = reader.readObject() as PhoneCallProtocolBase;

  // Construct [PhoneAcceptCall] object.
  final returnValue = PhoneAcceptCall(
    peer: peer,
    gB: gB,
    protocol: protocol,
  );

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