ContactsGetBlocked.deserialize constructor

ContactsGetBlocked.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory ContactsGetBlocked.deserialize(BinaryReader reader) {
  // Read [ContactsGetBlocked] fields.
  final flags = reader.readInt32();
  final myStoriesFrom = (flags & 1) != 0;
  final offset = reader.readInt32();
  final limit = reader.readInt32();

  // Construct [ContactsGetBlocked] object.
  final returnValue = ContactsGetBlocked(
    myStoriesFrom: myStoriesFrom,
    offset: offset,
    limit: limit,
  );

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