PhoneSaveCallDebug.deserialize constructor

PhoneSaveCallDebug.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhoneSaveCallDebug.deserialize(BinaryReader reader) {
  // Read [PhoneSaveCallDebug] fields.
  final peer = reader.readObject() as InputPhoneCallBase;
  final debug = reader.readObject() as DataJSONBase;

  // Construct [PhoneSaveCallDebug] object.
  final returnValue = PhoneSaveCallDebug(
    peer: peer,
    debug: debug,
  );

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