UpdatePhoneCall.deserialize constructor

UpdatePhoneCall.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdatePhoneCall.deserialize(BinaryReader reader) {
  // Read [UpdatePhoneCall] fields.
  final phoneCall = reader.readObject() as PhoneCallBase;

  // Construct [UpdatePhoneCall] object.
  final returnValue = UpdatePhoneCall(
    phoneCall: phoneCall,
  );

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