PhoneJoinGroupCallPresentation.deserialize constructor

PhoneJoinGroupCallPresentation.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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