PhoneGetGroupParticipants.deserialize constructor

PhoneGetGroupParticipants.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory PhoneGetGroupParticipants.deserialize(BinaryReader reader) {
  // Read [PhoneGetGroupParticipants] fields.
  final call = reader.readObject() as InputGroupCallBase;
  final ids = reader.readVectorObject<InputPeerBase>();
  final sources = reader.readVectorInt32();
  final offset = reader.readString();
  final limit = reader.readInt32();

  // Construct [PhoneGetGroupParticipants] object.
  final returnValue = PhoneGetGroupParticipants(
    call: call,
    ids: ids,
    sources: sources,
    offset: offset,
    limit: limit,
  );

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